Skip to content

Commit

Permalink
simplify the publish release action
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Jul 31, 2024
1 parent 54988f7 commit 8e31f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
exit 1
fi
echo "Commit ID: ${commit_id}"
workflow_runs=$(gh api -X GET "/repos/${{ github.repository }}/actions/runs?status=success" -q '.workflow_runs | map(select(.head_commit.id == "'"${commit_id}"'")) | sort_by(.created_at) | reverse | .[0]')
workflow_runs=$(gh api -X GET "/repos/${{ github.repository }}/actions/runs?status=success" -q '.workflow_runs | sort_by(.created_at) | reverse | select(.head_commit.id == "'"${commit_id}"'") | .[0]')
run_id=$(echo "$workflow_runs" | jq -r '.id')
echo "Run ID: ${run_id}"
echo "run_id=${run_id}" >> $GITHUB_ENV
Expand Down

0 comments on commit 8e31f6b

Please sign in to comment.