@@ -32,9 +32,22 @@ inputs:
3232runs :
3333 using : " composite"
3434 steps :
35- - uses : ./../local-actions
35+ # FIXME: This is a workaround until this issue is resolved: https://github.com/actions/runner/issues/1348.
36+ - name : Prepare sibling actions
37+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
3638 with :
37- source-path : ${{ github.action_path }}/../..
39+ script : |
40+ const path = require('node:path');
41+
42+ const sourcePath = path.resolve(process.env.GITHUB_ACTION_PATH, '..');
43+ const destinationPath = path.resolve(process.env.GITHUB_WORKSPACE, '..', 'self-actions');
44+
45+ await io.rmRF(destinationPath);
46+ await io.mkdirP(destinationPath);
47+ await io.cp(sourcePath, destinationPath, {
48+ recursive: true,
49+ copySourceDirectory: false,
50+ });
3851
3952 - id : github-actions-bot-user
4053 uses : ./../self-actions/get-github-actions-bot-user
@@ -132,3 +145,12 @@ runs:
132145
133146 echo "::error::Failed to merge pull request after $MAX_ATTEMPTS attempts: $MERGE_OUTPUTS"
134147 exit 1
148+
149+ - name : Cleanup sibling actions
150+ if : ${{ always() }}
151+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
152+ with :
153+ script : |
154+ const path = require('node:path');
155+
156+ await io.rmRF(path.resolve(process.env.GITHUB_WORKSPACE, '..', 'self-actions'));
0 commit comments