cicd: restrict worflow runs to develop branch

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2025-03-13 18:13:05 +01:00
committed by dw-0
parent c901cd1fdf
commit cf4e915430
3 changed files with 10 additions and 6 deletions

View File

@@ -11,5 +11,5 @@ end_of_line = lf
[*.py] [*.py]
max_line_length = 88 max_line_length = 88
[*.sh] [*.{sh,yml,yaml}]
indent_size = 2 indent_size = 2

View File

@@ -1,12 +1,14 @@
name: fast-forward name: fast-forward
on: on:
issue_comment: issue_comment:
types: [created, edited] types: [ created, edited ]
jobs: jobs:
fast-forward: fast-forward:
# Only run if the comment contains the /fast-forward command. # Only run if the comment contains the /fast-forward command.
if: ${{ contains(github.event.comment.body, '/fast-forward') if: |
&& github.event.issue.pull_request }} contains(github.event.comment.body, '/fast-forward') &&
github.event.issue.pull_request &&
github.base_ref == 'develop'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:

View File

@@ -1,7 +1,9 @@
name: pull-request name: pull-request
on: on:
pull_request: pull_request:
types: [opened, reopened, synchronize] branches:
- develop
types: [ opened, reopened, synchronize ]
jobs: jobs:
check-fast-forward: check-fast-forward:
runs-on: ubuntu-latest runs-on: ubuntu-latest