build: use the correct base branch for xsscommitlint
It might not be master! (cherry picked from commit fc894e1fd8977ac450118887a1914ca248e3571c)
This commit is contained in:
committed by
Ned Batchelder
parent
32d35acf63
commit
79a7ad52a7
3
.github/workflows/quality-checks.yml
vendored
3
.github/workflows/quality-checks.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
fetch-depth: 2
|
||||
|
||||
- name: Fetch master for comparison
|
||||
run: git fetch --depth=1 origin master
|
||||
run: git fetch --depth=1 origin ${{ github.base_ref }}
|
||||
|
||||
- name: Install Required System Packages
|
||||
run: sudo apt-get update && sudo apt-get install libxmlsec1-dev
|
||||
@@ -65,6 +65,7 @@ jobs:
|
||||
SCRIPT_TO_RUN: ./scripts/generic-ci-tests.sh
|
||||
SHARD: 4
|
||||
PIP_SRC_DIR: ${{ runner.temp }}
|
||||
TARGET_BRANCH: ${{ github.base_ref }}
|
||||
run: |
|
||||
./scripts/all-tests.sh
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ show_verbose() {
|
||||
echo "Files linted is based on the following:"
|
||||
echo "- Current commit: ${current_branch_hash}"
|
||||
echo "- Main commit: ${MAIN_COMMIT}"
|
||||
echo "- Target branch: ${TARGET_BRANCH}"
|
||||
echo "- Merge base command: ${merge_base_command}"
|
||||
echo "- Merge base: ${merge_base}"
|
||||
echo "- Diff command: ${diff_command}"
|
||||
|
||||
Reference in New Issue
Block a user