Skip to content

Commit

Permalink
Update pr-on-branch-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ines-gimeno-molina authored Apr 30, 2024
1 parent 233f618 commit abf6079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-on-branch-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
- name: Get linked issue number to PR
id: get_issue_number
run: |
ISSUE_NUMBER=$(jq --raw-output .issue.url <<< "$(curl -s -H "Authorization: token $GITHUB_TOKEN" ${{ github.event.pull_request.issue_url }})")
ISSUE_URL=$(jq --raw-output '.issue.url' <<< "${{ github.event.pull_request }}")
ISSUE_NUMBER=$(curl -sSL -H "Authorization: token $GITHUB_TOKEN" $ISSUE_URL | jq --raw-output '.number')
echo "::set-output name=issue_number::$ISSUE_NUMBER"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: Copy labels from linked issues
if: ${{ steps.get_issue_number.outputs.issue_number }}
uses: michalvankodev/[email protected]
Expand Down

0 comments on commit abf6079

Please sign in to comment.