diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e7d78e10..0e7e1eeb0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,13 +30,13 @@ jobs: workflow_runs=$(gh api -X GET "/repos/${{ github.repository }}/actions/runs?event=push&status=success" -q '.workflow_runs | map(select(.head_commit.id == "'"${commit_id}"'")) | sort_by(.created_at) | reverse | .[0]') run_id=$(echo "$workflow_runs" | jq -r '.id') echo "Run ID: ${run_id}" - echo "::set-output name=run_id::${run_id}" + echo "run_id=${run_id}" >> $GITHUB_ENV env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Download npm artifact uses: actions/download-artifact@v4 with: - run-id: ${{ steps.find_workflow.outputs.run_id }} + run-id: ${{ env.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} name: npm path: bld/npm