ci: harden workflows (#4412)
This commit is contained in:
parent
852dee0a68
commit
a2e6fc9f2a
7 changed files with 65 additions and 60 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -179,11 +179,11 @@ jobs:
|
|||
- name: Should run
|
||||
id: should_run
|
||||
run: |
|
||||
if [ ${{ github.event_name }} != 'pull_request' ] || [ ${{ matrix.pr }} == 'true' ]; then
|
||||
echo "SHOULD_RUN=true" >> "${GITHUB_OUTPUT}"
|
||||
else
|
||||
echo "SHOULD_RUN=false" >> "${GITHUB_OUTPUT}"
|
||||
should_run="false"
|
||||
if [ "${GITHUB_EVENT_NAME}" != "pull_request" ] || [ ${{ matrix.pr }} == "true" ]; then
|
||||
should_run="true"
|
||||
fi
|
||||
echo "SHOULD_RUN=${should_run}" >> "${GITHUB_OUTPUT}"
|
||||
|
||||
- name: Checkout
|
||||
if: steps.should_run.outputs.SHOULD_RUN == 'true'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue