Abrechnung und Workflow

This commit is contained in:
Moritz Utcke
2025-06-11 09:50:41 -05:00
parent 54d8fb5d1b
commit d98a5065ef
5 changed files with 452 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ jobs:
steps:
- name: Prevent dev merges
run: |
echo "${{ github.head_ref }}";
echo "${{ github.base_ref }}";
if [[ "${{ github.head_ref }}" == "dev" ]]; then
echo "ERROR: Merging 'dev' into '${{ github.base_ref }}' is forbidden!"
exit 1
@@ -21,6 +23,8 @@ jobs:
- name: Allow only staging into main
if: github.base_ref == 'main'
run: |
echo "${{ github.head_ref }}";
echo "${{ github.base_ref }}";
if [[ "${{ github.head_ref }}" != "staging" ]]; then
echo "ERROR: Only 'staging' branch is allowed to merge into 'main'. Current: '${{ github.head_ref }}'"
exit 1