refactor(github-actions): Add warnForPRIntoMain action to prevent merge in main directly #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |