Skip to content

Commit

Permalink
Add check for actor to prevent infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Oct 16, 2024
1 parent 7d16563 commit ccea9f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ concurrency: ${{ github.workflow }}
jobs:
get_pull_request:
runs-on: ubuntu-latest

# os-botify[bot] will update the version on `main`, so this check is important to prevent an infinite loop
if: ${{ github.actor != 'os-botify[bot]' }}

outputs:
pull_request_number: ${{ steps.getMergedPullRequest.outputs.number }}
steps:
Expand Down

0 comments on commit ccea9f6

Please sign in to comment.