From 0ea8a66434012b2929cf23623c6f52ca08c7e1a7 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Thu, 12 Sep 2024 20:22:28 -0700 Subject: [PATCH] Use working-directory key and include hidden files So that zip and upload-artifact produce the same result --- .github/actions/assemble-release/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/assemble-release/action.yml b/.github/actions/assemble-release/action.yml index 2afd5d9..7e6ac66 100644 --- a/.github/actions/assemble-release/action.yml +++ b/.github/actions/assemble-release/action.yml @@ -52,8 +52,8 @@ runs: - name: Assemble Release id: assemble-release shell: bash + working-directory: ${{ env.RELEASE_STAGING }} run: | - cd ${{ env.RELEASE_STAGING }} zip -r ${{ github.workspace }}/${{ inputs.output-file-name }}.zip . echo 'ARTIFACT_FILENAME=${{ inputs.output-file-name }}' >> $GITHUB_ENV echo 'artifact-path=${{ github.workspace }}/${{ inputs.output-file-name }}' >> $GITHUB_OUTPUT @@ -65,3 +65,4 @@ runs: path: ${{ env.RELEASE_STAGING }} name: ${{ inputs.output-file-name }} if-no-files-found: error + include-hidden-files: 'true' # behavior changed in 4.4.0. Include hidden for matching the behavior of `zip`