Skip pull_request actions when fetching ref in gas-compare action
This commit is contained in:
2
.github/actions/gas-compare/action.yml
vendored
2
.github/actions/gas-compare/action.yml
vendored
@ -22,7 +22,7 @@ runs:
|
|||||||
- name: Download reference report
|
- name: Download reference report
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
RUN_ID=`gh run list --repo ${{ github.repository }} --branch ${{ github.base_ref }} --workflow ${{ github.workflow }} --json 'conclusion,databaseId' --jq 'map(select(.conclusion=="success"))[0].databaseId'`
|
RUN_ID=`gh run list --repo ${{ github.repository }} --branch ${{ github.base_ref }} --workflow ${{ github.workflow }} --limit 100 --json 'conclusion,databaseId,event' --jq 'map(select(.conclusion=="success" and .event!="pull_request"))[0].databaseId'`
|
||||||
gh run download ${RUN_ID} --repo ${{ github.repository }} -n gasreport
|
gh run download ${RUN_ID} --repo ${{ github.repository }} -n gasreport
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ inputs.token }}
|
GITHUB_TOKEN: ${{ inputs.token }}
|
||||||
|
|||||||
Reference in New Issue
Block a user