Skip to content

Commit

Permalink
add pr number to gh command
Browse files Browse the repository at this point in the history
  • Loading branch information
mishabruml committed Mar 31, 2022
1 parent 310a438 commit 131400e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:

- name: Add 'snyk' label to PR
if: ${{ (startsWith(github.head_ref, 'snyk-fix-') || startsWith(github.head_ref, 'snyk-upgrade-')) && startsWith(github.event.pull_request.title, '[Snyk]') }}
run: gh pr edit --add-label 'snyk'
run: gh pr edit $(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }') --add-label 'snyk'
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
Expand Down

0 comments on commit 131400e

Please sign in to comment.