Skip to content

Commit

Permalink
check when merging to stable (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
magick93 authored Nov 25, 2024
1 parent 4956972 commit 638eaa8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ jobs:
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
steps:
- name: Check that the pull request is not targeting the stable branch
run: test ${{ github.base_ref }} != "stable"
run: |
if [[ "${{ github.base_ref }}" == "stable" && "${{ github.head_ref }}" != "unstable" ]]; then
echo "Pull requests to the stable branch can only come from the unstable branch."
exit 1
fi
release-tests-ubuntu:
name: release-tests-ubuntu
needs: [check-labels]
Expand Down

0 comments on commit 638eaa8

Please sign in to comment.