Skip to content

Commit c275ccb

Browse files
authored
Merge pull request fluxcd#2249 from felddy/main
Fix GitHub Action syntax error and filter with if statement
2 parents d2cac70 + 0046244 commit c275ccb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/en/flux/use-cases/gh-actions-auto-pr.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ To create the pull request whenever automation creates a new branch, in your man
3333
name: Staging Auto-PR
3434
on:
3535
create:
36-
branches: [staging]
3736
3837
jobs:
3938
pull-request:
4039
runs-on: ubuntu-latest
40+
if: |
41+
github.event.ref_type == 'branch' &&
42+
github.event.ref == 'staging'
4143
permissions:
4244
pull-requests: write
4345
steps:

0 commit comments

Comments
 (0)