From e9f2f571ce10894fce96a419cf195135929eeb29 Mon Sep 17 00:00:00 2001 From: Krzysztof Kalinowski Date: Thu, 12 Jan 2023 12:14:53 +0100 Subject: [PATCH] Using 'shell:bash' for windows to ensure proper variable output --- .github/workflows/cd.yml | 3 +++ noxfile.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 11a6c8579..afb1fc835 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -138,12 +138,15 @@ jobs: run: python -m pip install --upgrade nox pip setuptools - name: Bundle the distribution id: bundle + shell: bash run: nox -vs bundle >> $GITHUB_OUTPUT - name: Import certificate id: windows_import_cert + shell: bash run: echo "filePath=some-path" >> $GITHUB_OUTPUT - name: Sign the bundle id: sign + shell: bash run: nox -vs sign -- '${{ steps.windows_import_cert.outputs.filePath }}' '${{ env.B2_WINDOWS_CODE_SIGNING_CERTIFICATE_PASSWORD }}' >> $GITHUB_OUTPUT - name: Generate hashes id: hashes diff --git a/noxfile.py b/noxfile.py index 2b4b0dd46..ba937311b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -279,7 +279,7 @@ def sign(session): # Set outputs for GitHub Actions if CI: - asset_path = str(next(pathlib.Path('dist').glob('*'))) + asset_path = str(pathlib.Path('dist') / '*') print(f'asset_path={asset_path}')