Skip to content

Commit 3372713

Browse files
authored
Merge pull request #21270 from emberjs/copilot/gate-workflow-every-10-weeks
2 parents 8352f23 + 808f104 commit 3372713

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/smoke-test-app-template-updates.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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:
@@ -29,6 +35,7 @@ jobs:
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:
@@ -68,6 +75,7 @@ jobs:
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

0 commit comments

Comments
 (0)