ci: fix commit range in push event (#29755)
* fix commit range * use github.event.before instead of HEAD~1
This commit is contained in:
parent
c4e43f1de4
commit
e7838768ec
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- name: Get commit range (push)
|
- name: Get commit range (push)
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: |
|
run: |
|
||||||
echo "COMMIT_RANGE=$GITHUB_SHA" >> $GITHUB_ENV
|
echo "COMMIT_RANGE=${{ github.event.before }}..$GITHUB_SHA" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Get commit range (pull_request)
|
- name: Get commit range (pull_request)
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
- name: Get commit range (push)
|
- name: Get commit range (push)
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: |
|
run: |
|
||||||
echo "COMMIT_RANGE=$GITHUB_SHA" >> $GITHUB_ENV
|
echo "COMMIT_RANGE=${{ github.event.before }}..$GITHUB_SHA" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Get commit range (pull_request)
|
- name: Get commit range (pull_request)
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
Loading…
Reference in New Issue