Skip to content

Commit

Permalink
chore: add condition to run checkout action to prevent errors on repo…
Browse files Browse the repository at this point in the history
…s that have a delete branch on merge automation
  • Loading branch information
juliamrch committed Aug 20, 2024
1 parent d5e094a commit 4b462f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v4
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand All @@ -29,4 +30,4 @@ jobs:
with:
type: 'static-apache'
set-env: true
environment: 'review'
environment: 'review'

0 comments on commit 4b462f7

Please sign in to comment.