Skip to content

Commit

Permalink
Fix only run on fork guard (#2378)
Browse files Browse the repository at this point in the history
* Fix only run on fork guard

The previous guard fails because `github.repository` resolves to the base repository on `pull_request` events.

* Fix syntax
  • Loading branch information
jdbaldry authored Jan 13, 2025
1 parent 3a4be44 commit 5f5c09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
deploy-pr-preview:
if: github.repository == 'grafana/alloy'
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: grafana/writers-toolkit/.github/workflows/deploy-preview.yml@main
with:
sha: ${{ github.event.pull_request.head.sha }}
Expand Down

0 comments on commit 5f5c09e

Please sign in to comment.