Skip to content

Commit a28bbda

Browse files
committed
chore: temporary CI probe (to be deleted)
1 parent a86e634 commit a28bbda

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: tmp timeout probe
2+
on:
3+
push:
4+
branches: ['tmp/ci-timeout-probe']
5+
permissions: {}
6+
jobs:
7+
probe:
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 1
10+
outputs:
11+
sleeper: ${{ steps.sleeper.outcome }}
12+
marker: ${{ steps.sleeper.outputs.marker }}
13+
steps:
14+
- name: sleep past the budget
15+
id: sleeper
16+
run: |
17+
echo "marker=set-before-sleep" >> "$GITHUB_OUTPUT"
18+
sleep 300
19+
- name: always step
20+
if: ${{ always() }}
21+
run: echo "ALWAYS-STEP-RAN"
22+
- name: cancelled step
23+
if: ${{ cancelled() }}
24+
run: echo "CANCELLED-STEP-RAN"
25+
- name: failure step
26+
if: ${{ failure() }}
27+
run: echo "FAILURE-STEP-RAN"
28+
reporter:
29+
needs: probe
30+
if: ${{ always() }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- run: |
34+
echo "PROBE-RESULT=${{ needs.probe.result }}"
35+
echo "PROBE-OUTPUT-sleeper='${{ needs.probe.outputs.sleeper }}'"
36+
echo "PROBE-OUTPUT-marker='${{ needs.probe.outputs.marker }}'"

0 commit comments

Comments
 (0)