Skip to content

Commit f26cb97

Browse files
authored
Merge pull request #2255 from fluxcd/backport-2249-to-v2-6
[v2-6] Fix GitHub Action syntax error and filter with if statement
2 parents 7349bf9 + 390639c commit f26cb97

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)