Skip to content

Commit

Permalink
ci: enable workflows for release/** branches
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Jul 4, 2023
1 parent 8ca8b92 commit 5356436
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 15 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ on:
pull_request_target:
types: [closed, labeled]

permissions:
contents: read

jobs:
pull-request:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
contents: read
if: github.event.pull_request.state == 'closed' && github.event.pull_request.merged && (github.event_name != 'labeled' || startsWith('backport:', github.event.label.name))
steps:
- name: Checkout
Expand All @@ -23,8 +19,8 @@ jobs:
uses: korthout/backport-action@bf5fdd624b35f95d5b85991a728bd5744e8c6cf2 # v1.3.1
# xref: https://github.com/korthout/backport-action#inputs
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
github_workspace: ${{ github.workspace }}
# Use token to allow workflows to be triggered for the created PR
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
# Match labels with a pattern `backport:<target-branch>`
label_pattern: '^backport:([^ ]+)$'
# A bit shorter pull-request title than the default
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: e2e-arm64
on:
workflow_dispatch:
push:
branches: [ main, update-components, e2e-*, release-* ]
branches: [ 'main', 'update-components', 'e2e-*', 'release/**' ]

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: e2e-bootstrap
on:
workflow_dispatch:
push:
branches: [ main, release-* ]
branches: [ 'main', 'release/**' ]
pull_request:
branches: [ main, release-* ]
branches: [ 'main', 'release/**' ]

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: e2e
on:
workflow_dispatch:
push:
branches: [ main, release-* ]
branches: [ 'main', 'release/**' ]
pull_request:
branches: [ main, release-* ]
branches: [ 'main', 'release/**' ]

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: scan
on:
workflow_dispatch:
push:
branches: [ main ]
branches: [ 'main', 'release/**' ]
pull_request:
branches: [ main ]
branches: [ 'main', 'release/**' ]
schedule:
- cron: '18 10 * * 3'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
body: |
${{ steps.update.outputs.pr_body }}
labels: |
area/build
dependencies
reviewers: ${{ secrets.ASSIGNEES }}

- name: Check output
Expand Down

0 comments on commit 5356436

Please sign in to comment.