Skip to content

Commit 9ecc01b

Browse files
authored
Fixing an issue calling the nested action (#2)
* link the action repo locally to allow calling the nested action
1 parent 1e14c15 commit 9ecc01b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

action.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ runs:
2222
docker tag ${{ inputs.image }} containerized_runner
2323
echo "::endgroup::"
2424
shell: bash
25+
- name: Symlink current action repo
26+
env:
27+
action_path: ${{ github.action_path }}
28+
run: ln -fs ${{ env.action_path }}/.. .github/.action_repo.run-containerized-script
29+
shell: bash
2530
- name: Run on container
26-
uses: ./run
31+
uses: ./.github/.action_repo.run-containerized-script/run
2732
with:
2833
args: ${{ inputs.args }}
34+
- name: Unlink the action repository
35+
if: always()
36+
run: rm -f .github/.action_repo.run-containerized-script
37+
shell: bash

0 commit comments

Comments
 (0)