[THROWAWAY] probe: gitea if-skip status reporting (ersatztv#416) #418
@@ -0,0 +1,31 @@
|
||||
name: zz Skip Probe (ersatztv#416, throwaway)
|
||||
|
||||
# THROWAWAY PROBE — do NOT merge. Answers ersatztv#416's central open question:
|
||||
# on this Gitea/act_runner version, how is an `if:`-skipped job reported to the
|
||||
# commit-status API that branch protection reads? success / pending / skipped / absent?
|
||||
# Read `/commits/<sha>/status` for this PR head after the run and delete the branch.
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
always-runs:
|
||||
name: probe-always
|
||||
runs-on: small
|
||||
steps:
|
||||
- run: echo "this job runs"
|
||||
|
||||
skipped-literal:
|
||||
name: probe-skipped-literal
|
||||
runs-on: small
|
||||
if: ${{ false }}
|
||||
steps:
|
||||
- run: echo "must NOT run"
|
||||
|
||||
gated-on-needs:
|
||||
name: probe-gated-on-needs
|
||||
runs-on: small
|
||||
needs: [always-runs]
|
||||
if: ${{ needs.always-runs.result == 'success' && false }}
|
||||
steps:
|
||||
- run: echo "must NOT run (needs-gated)"
|
||||
Reference in New Issue
Block a user