Skip to content

Commit

Permalink
Merge pull request #128 from Expensify/andrew-loop
Browse files Browse the repository at this point in the history
Add check for actor to prevent infinite loop
  • Loading branch information
johnmlee101 authored Oct 16, 2024
2 parents 4150976 + ccea9f6 commit 2452fc5
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 2452fc5

Please sign in to comment.