Skip to content

Commit 39a5f92

Browse files
committed
⚗ Make the intermediate action path relative
1 parent e36b8c1 commit 39a5f92

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,20 @@ runs:
131131
PR_REPO: ${{ github.event.pull_request.head.repo.full_name }}
132132
PR_REPO_ID: ${{ github.event.pull_request.base.repo.id }}
133133
- name: Create Docker container action
134+
id: intermediate-action
134135
run: |
135136
# Create Docker container action
136-
python create-docker-action.py
137+
python ${{ github.action_path }}/create-docker-action.py
138+
echo "path=$(realpath -s --relative-to="$(pwd)" '${{
139+
github.action_path
140+
}}')" >> "${GITHUB_OUTPUT}"
137141
env:
138142
REF: ${{ steps.set-repo-and-ref.outputs.ref }}
139143
REPO: ${{ steps.set-repo-and-ref.outputs.repo }}
140144
REPO_ID: ${{ steps.set-repo-and-ref.outputs.repo-id }}
141145
shell: bash
142-
working-directory: ${{ github.action_path }}
143146
- name: Run Docker container
144-
uses: ${{ github.action_path }}/.github/actions/run-docker-container
147+
uses: ${{ steps.intermediate-action.outputs.path }}/.github/actions/run-docker-container
145148
with:
146149
user: ${{ inputs.user }}
147150
password: ${{ inputs.password }}

0 commit comments

Comments
 (0)