ci: fix skip condition for draft pull requests in CI workflows (#2088)

* ci: run xxx-result only when pre_job is run successfully
* fix get-result steps
This commit is contained in:
Luna Yao
2026-04-09 03:45:04 +02:00
committed by GitHub
parent 26b1794723
commit c5fbd29c0e
5 changed files with 22 additions and 28 deletions
+2 -1
View File
@@ -38,10 +38,11 @@ jobs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
# Map a step output to a job output
outputs:
# do not skip push on branch starts with releases/
should_skip: ${{ (github.event_name == 'pull_request' && github.event.pull_request.draft) || (steps.skip_check.outputs.should_skip == 'true' && !startsWith(github.ref_name, 'releases/')) }}
should_skip: ${{ steps.skip_check.outputs.should_skip == 'true' && !startsWith(github.ref_name, 'releases/') }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5