Tilpasset simulerAlderspensjonV8 for pre2025OffentligAfp #92
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 sandbox commits | |
on: | |
push: | |
branches-ignore: | |
- 'sandbox' | |
jobs: | |
detectSandboxCommits: | |
name: "Prevent sandbox commits" | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.version.outputs.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check whether there are commits from the sandbox branch in this branch | |
shell: bash | |
run: | | |
FILE=.github/SANDBOX.md | |
if test -f "$FILE"; then | |
echo "The SANDBOX.md file exists. This is an indication that code from the sandbox branch has been merged into a non-sandbox branch, which is prohibited." | |
exit 1 | |
else | |
echo "No sandbox commits detected in this branch. All is good!" | |
fi |