fix_: properly call commit_check and checkout forks (#5863)
This commit is contained in:
parent
a84f78f8aa
commit
2ca34489db
|
@ -17,20 +17,19 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.GITHUB_HEAD_REF }}
|
fetch-depth: 0
|
||||||
fetch-tags: true
|
ref: ${{github.event.pull_request.head.ref}}
|
||||||
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
||||||
- name: Fetch tags
|
|
||||||
run: |
|
|
||||||
git fetch --tags --quiet
|
|
||||||
git checkout ${{ github.event.pull_request.head.ref }}
|
|
||||||
|
|
||||||
- name: Check commit message
|
- name: Check commit message
|
||||||
id: check_commit_message
|
id: check_commit_message
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
output=$(./_assets/scripts/commit_check.sh 2>&1)
|
base_sha=${{ github.event.pull_request.base.sha }}
|
||||||
|
head_sha=${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
|
output=$(./_assets/scripts/commit_check.sh "${base_sha}" "${head_sha}" 2>&1)
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
|
|
||||||
echo "${output}" | sed '$d'
|
echo "${output}" | sed '$d'
|
||||||
|
|
Loading…
Reference in New Issue