@@ -71,33 +71,33 @@ jobs:
7171 - name : Setup Scripts
7272 uses : ./actions/setup
7373 with :
74- destination : /opt/gh-aw /actions
74+ destination : ${{ env.GH_AW_HOME }} /actions
7575
7676 - name : Close expired discussions
7777 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
7878 with :
7979 script : |
80- const { setupGlobals } = require('/opt/gh-aw /actions/setup_globals.cjs');
80+ const { setupGlobals } = require(process.env.GH_AW_HOME + ' /actions/setup_globals.cjs');
8181 setupGlobals(core, github, context, exec, io);
82- const { main } = require('/opt/gh-aw /actions/close_expired_discussions.cjs');
82+ const { main } = require(process.env.GH_AW_HOME + ' /actions/close_expired_discussions.cjs');
8383 await main();
8484
8585 - name : Close expired issues
8686 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
8787 with :
8888 script : |
89- const { setupGlobals } = require('/opt/gh-aw /actions/setup_globals.cjs');
89+ const { setupGlobals } = require(process.env.GH_AW_HOME + ' /actions/setup_globals.cjs');
9090 setupGlobals(core, github, context, exec, io);
91- const { main } = require('/opt/gh-aw /actions/close_expired_issues.cjs');
91+ const { main } = require(process.env.GH_AW_HOME + ' /actions/close_expired_issues.cjs');
9292 await main();
9393
9494 - name : Close expired pull requests
9595 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
9696 with :
9797 script : |
98- const { setupGlobals } = require('/opt/gh-aw /actions/setup_globals.cjs');
98+ const { setupGlobals } = require(process.env.GH_AW_HOME + ' /actions/setup_globals.cjs');
9999 setupGlobals(core, github, context, exec, io);
100- const { main } = require('/opt/gh-aw /actions/close_expired_pull_requests.cjs');
100+ const { main } = require(process.env.GH_AW_HOME + ' /actions/close_expired_pull_requests.cjs');
101101 await main();
102102
103103 run_operation :
@@ -116,16 +116,16 @@ jobs:
116116 - name : Setup Scripts
117117 uses : ./actions/setup
118118 with :
119- destination : /opt/gh-aw /actions
119+ destination : ${{ env.GH_AW_HOME }} /actions
120120
121121 - name : Check admin/maintainer permissions
122122 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
123123 with :
124124 github-token : ${{ secrets.GITHUB_TOKEN }}
125125 script : |
126- const { setupGlobals } = require('/opt/gh-aw /actions/setup_globals.cjs');
126+ const { setupGlobals } = require(process.env.GH_AW_HOME + ' /actions/setup_globals.cjs');
127127 setupGlobals(core, github, context, exec, io);
128- const { main } = require('/opt/gh-aw /actions/check_team_member.cjs');
128+ const { main } = require(process.env.GH_AW_HOME + ' /actions/check_team_member.cjs');
129129 await main();
130130
131131 - name : Setup Go
@@ -146,9 +146,9 @@ jobs:
146146 with :
147147 github-token : ${{ secrets.GITHUB_TOKEN }}
148148 script : |
149- const { setupGlobals } = require('/opt/gh-aw /actions/setup_globals.cjs');
149+ const { setupGlobals } = require(process.env.GH_AW_HOME + ' /actions/setup_globals.cjs');
150150 setupGlobals(core, github, context, exec, io);
151- const { main } = require('/opt/gh-aw /actions/run_operation_update_upgrade.cjs');
151+ const { main } = require(process.env.GH_AW_HOME + ' /actions/run_operation_update_upgrade.cjs');
152152 await main();
153153
154154 compile-workflows :
@@ -180,15 +180,15 @@ jobs:
180180 - name : Setup Scripts
181181 uses : ./actions/setup
182182 with :
183- destination : /opt/gh-aw /actions
183+ destination : ${{ env.GH_AW_HOME }} /actions
184184
185185 - name : Check for out-of-sync workflows and create issue if needed
186186 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
187187 with :
188188 script : |
189- const { setupGlobals } = require('/opt/gh-aw /actions/setup_globals.cjs');
189+ const { setupGlobals } = require(process.env.GH_AW_HOME + ' /actions/setup_globals.cjs');
190190 setupGlobals(core, github, context, exec, io);
191- const { main } = require('/opt/gh-aw /actions/check_workflow_recompile_needed.cjs');
191+ const { main } = require(process.env.GH_AW_HOME + ' /actions/check_workflow_recompile_needed.cjs');
192192 await main();
193193
194194 zizmor-scan :
@@ -236,7 +236,7 @@ jobs:
236236 - name : Setup Scripts
237237 uses : ./actions/setup
238238 with :
239- destination : /opt/gh-aw /actions
239+ destination : ${{ env.GH_AW_HOME }} /actions
240240
241241 - name : Validate Secrets
242242 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
@@ -254,9 +254,9 @@ jobs:
254254 NOTION_API_TOKEN : ${{ secrets.NOTION_API_TOKEN }}
255255 with :
256256 script : |
257- const { setupGlobals } = require('/opt/gh-aw /actions/setup_globals.cjs');
257+ const { setupGlobals } = require(process.env.GH_AW_HOME + ' /actions/setup_globals.cjs');
258258 setupGlobals(core, github, context, exec, io);
259- const { main } = require('/opt/gh-aw /actions/validate_secrets.cjs');
259+ const { main } = require(process.env.GH_AW_HOME + ' /actions/validate_secrets.cjs');
260260 await main();
261261
262262 - name : Upload secret validation report
0 commit comments