From 309c630b74b0180c27cba456897c15984bbeaeeb Mon Sep 17 00:00:00 2001 From: Brandon Wilson Date: Fri, 23 Aug 2024 11:40:34 -0500 Subject: [PATCH] fix(ci): artifact path is not preserved --- .github/workflows/deploy-worker.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-worker.yml b/.github/workflows/deploy-worker.yml index ed3f43d..5cff960 100644 --- a/.github/workflows/deploy-worker.yml +++ b/.github/workflows/deploy-worker.yml @@ -28,7 +28,7 @@ jobs: deploy: runs-on: ubuntu-latest outputs: - WORKER_SCRIPT: ${{ steps.get-script.outputs.WORKER_SCRIPT }} + WORKER_SCRIPT: ${{ steps.get-script.outputs.WORKER_SCRIPT_FILENAME }} env: wranglerVersion: "3.68.0" @@ -112,6 +112,7 @@ jobs: fi echo "WORKER_SCRIPT=${worker_script}" >> "$GITHUB_OUTPUT" + echo "WORKER_SCRIPT_FILENAME=$(basename $worker_script)" >> "$GITHUB_OUTPUT" - uses: actions/upload-artifact@v4 with: @@ -155,6 +156,6 @@ jobs: - uses: actions/attest@2da0b136720d14f01f4dbeeafd1d5a4d76cbe21d # v1.4.0 id: attest with: - subject-path: ${{ github.event.inputs.directory }}/${{ needs.deploy.outputs.WORKER_SCRIPT }} + subject-path: ${{ needs.deploy.outputs.WORKER_SCRIPT }} predicate-type: ${{ steps.generate-build-provenance-predicate.outputs.predicate-type }} predicate: ${{ steps.update-predicate.outputs.predicate }}