Skip to content

Commit

Permalink
refactor(github-actions): Add warnForPRIntoMain action to prevent mer…
Browse files Browse the repository at this point in the history
…ge in main directly
  • Loading branch information
vogelino committed Aug 10, 2023
1 parent e247d8b commit f1d0309
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/warnForPRIntoMain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'Prevent merge from non-staging to master'
on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
warn_main_merge:
runs-on: 'ubuntu-latest'
name: 'Validate PR Source and Target Branches'
steps:
- name: 'Checking source and target branch in PR'
uses: 'technologiestiftung/[email protected]'
with:
stagingName: 'staging'
mainName: 'master'

0 comments on commit f1d0309

Please sign in to comment.