File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,14 +12,20 @@ jobs:
1212 gate :
1313 name : Gate to every 10 weeks
1414 runs-on : ubuntu-latest
15+ outputs :
16+ should_run : ${{ steps.check.outputs.should_run }}
1517 steps :
1618 - name : Check schedule
19+ id : check
1720 run : |
1821 set -euo pipefail
1922 week=$(date +%V)
2023 if [ $((10#$week % 10)) -ne 0 ]; then
2124 echo "Skipping: ISO week $week is not a 10-week interval."
22- exit 1
25+ echo "should_run=false" >> "$GITHUB_OUTPUT"
26+ else
27+ echo "Running: ISO week $week is a 10-week interval."
28+ echo "should_run=true" >> "$GITHUB_OUTPUT"
2329 fi
2430
2531 update-app-template :
2935 contents : write
3036 pull-requests : write
3137 needs : gate
38+ if : needs.gate.outputs.should_run == 'true'
3239 steps :
3340 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3441 with :
6875 name : Regenerate smoke-tests v2 app template
6976 runs-on : ubuntu-latest
7077 needs : gate
78+ if : needs.gate.outputs.should_run == 'true'
7179 permissions :
7280 contents : write
7381 pull-requests : write
You can’t perform that action at this time.
0 commit comments