mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-01 11:54:40 +00:00
Allow release branches to target stable in target-branch-check (#9457)
Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
10
.github/workflows/test-suite.yml
vendored
10
.github/workflows/test-suite.yml
vendored
@@ -71,7 +71,15 @@ jobs:
|
|||||||
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
|
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
|
||||||
steps:
|
steps:
|
||||||
- name: Check that the pull request is not targeting the stable branch
|
- name: Check that the pull request is not targeting the stable branch
|
||||||
run: test ${{ github.base_ref }} != "stable"
|
env:
|
||||||
|
BASE_REF: ${{ github.base_ref }}
|
||||||
|
HEAD_REF: ${{ github.head_ref }}
|
||||||
|
HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
|
run: |
|
||||||
|
if [[ "$BASE_REF" == "stable" && ! ( "$HEAD_REF" == release-* && "$HEAD_REPO" == "sigp/lighthouse" ) ]]; then
|
||||||
|
echo "::error::Pull requests must target unstable, not stable (sigp/lighthouse release-* branches excepted)."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
forbidden-files-check:
|
forbidden-files-check:
|
||||||
name: forbidden-files-check
|
name: forbidden-files-check
|
||||||
|
|||||||
Reference in New Issue
Block a user