Skip to content

Commit

Permalink
bug fix: get pr from step
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed May 19, 2024
1 parent 204c48c commit eeb8c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_version_enforce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Check if the pull request is labeled with ${{ env.LABEL_PUBLISHED }} # 2
id: published
run: |
if $( gh pr view ${{ needs.associated_pr.outputs.event }} --repo ${{ env.OWNER }}/${{ env.REPO }} --json "labels" --jq ".[].[].name" | grep --quiet ${{ env.LABEL_PUBLISHED }}); then
if $( gh pr view ${{ steps.get_pr.outputs.pr }} --repo ${{ env.OWNER }}/${{ env.REPO }} --json "labels" --jq ".[].[].name" | grep --quiet ${{ env.LABEL_PUBLISHED }}); then
echo "LABELED=true" >> $GITHUB_OUTPUT
else
echo "LABELED=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit eeb8c47

Please sign in to comment.