1313# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
1414# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
1515#
16- # This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.35.1 ). DO NOT EDIT.
16+ # This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.36.0 ). DO NOT EDIT.
1717#
1818# To regenerate this workflow, run:
1919# gh aw compile
@@ -45,17 +45,17 @@ jobs:
4545 discussions : write
4646 steps :
4747 - name : Setup Scripts
48- uses : githubnext/gh-aw/actions/setup@v0.35.1
48+ uses : githubnext/gh-aw/actions/setup@v0.36.0
4949 with :
50- destination : /tmp /gh-aw/actions
50+ destination : /opt /gh-aw/actions
5151
5252 - name : Close expired discussions
5353 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
5454 with :
5555 script : |
56- const { setupGlobals } = require('/tmp /gh-aw/actions/setup_globals.cjs');
56+ const { setupGlobals } = require('/opt /gh-aw/actions/setup_globals.cjs');
5757 setupGlobals(core, github, context, exec, io);
58- const { main } = require('/tmp /gh-aw/actions/close_expired_discussions.cjs');
58+ const { main } = require('/opt /gh-aw/actions/close_expired_discussions.cjs');
5959 await main();
6060
6161 close-expired-issues :
@@ -64,26 +64,32 @@ jobs:
6464 issues : write
6565 steps :
6666 - name : Setup Scripts
67- uses : githubnext/gh-aw/actions/setup@v0.35.1
67+ uses : githubnext/gh-aw/actions/setup@v0.36.0
6868 with :
69- destination : /tmp /gh-aw/actions
69+ destination : /opt /gh-aw/actions
7070
7171 - name : Close expired issues
7272 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
7373 with :
7474 script : |
75- const { setupGlobals } = require('/tmp /gh-aw/actions/setup_globals.cjs');
75+ const { setupGlobals } = require('/opt /gh-aw/actions/setup_globals.cjs');
7676 setupGlobals(core, github, context, exec, io);
77- const { main } = require('/tmp /gh-aw/actions/close_expired_issues.cjs');
77+ const { main } = require('/opt /gh-aw/actions/close_expired_issues.cjs');
7878 await main();
7979
8080 compile-workflows :
8181 runs-on : ubuntu-latest
8282 permissions :
8383 contents : read
84+ issues : write
8485 steps :
8586 - name : Checkout repository
8687 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
88+ with :
89+ sparse-checkout : |
90+ .github
91+ persist-credentials : false
92+
8793
8894 - name : Setup Go
8995 uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
@@ -99,17 +105,19 @@ jobs:
99105 ./gh-aw compile --validate --verbose
100106 echo "✓ All workflows compiled successfully"
101107
102- - name : Check for out-of-sync workflows
103- run : |
104- if git diff --exit-code .github/workflows/*.lock.yml; then
105- echo "✓ All workflow lock files are up to date"
106- else
107- echo "::error::Some workflow lock files are out of sync. Run 'make recompile' locally."
108- echo "::group::Diff of out-of-sync files"
109- git diff .github/workflows/*.lock.yml
110- echo "::endgroup::"
111- exit 1
112- fi
108+ - name : Setup Scripts
109+ uses : githubnext/gh-aw/actions/setup@v0.36.0
110+ with :
111+ destination : /tmp/gh-aw/actions
112+
113+ - name : Check for out-of-sync workflows and create issue if needed
114+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
115+ with :
116+ script : |
117+ const { setupGlobals } = require('/tmp/gh-aw/actions/setup_globals.cjs');
118+ setupGlobals(core, github, context, exec, io);
119+ const { main } = require('/tmp/gh-aw/actions/check_workflow_recompile_needed.cjs');
120+ await main();
113121
114122 zizmor-scan :
115123 runs-on : ubuntu-latest
0 commit comments