-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Use relative paths to reference sub-actions in composite actions #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e879f9c
96cab59
a69e694
f7eb28c
7751aa6
81cd671
3e6b80b
2aaec76
ec368b7
74e1464
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -40,9 +40,16 @@ outputs: | |||||||||||||
| runs: | ||||||||||||||
| using: "composite" | ||||||||||||||
| steps: | ||||||||||||||
| - name: Make sub-actions referenceable | ||||||||||||||
| working-directory: ${{ github.action_path }} | ||||||||||||||
| shell: bash | ||||||||||||||
| run: | | ||||||||||||||
| mkdir -p /home/runner/work/_actions/current/.github/actions | ||||||||||||||
| rsync -a .github/actions/ /home/runner/work/_actions/current/.github/actions/ | ||||||||||||||
| ls -ltra /home/runner/work/_actions/current/.github/actions | ||||||||||||||
|
Comment on lines
+47
to
+49
|
||||||||||||||
| mkdir -p /home/runner/work/_actions/current/.github/actions | |
| rsync -a .github/actions/ /home/runner/work/_actions/current/.github/actions/ | |
| ls -ltra /home/runner/work/_actions/current/.github/actions | |
| mkdir -p "${{ github.action_path }}/.github/actions" | |
| rsync -a .github/actions/ "${{ github.action_path }}/.github/actions/" | |
| ls -ltra "${{ github.action_path }}/.github/actions" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hardcoded absolute path
/home/runner/work/_actions/current/assumes a specific runner directory structure that may not be portable across different environments or runner types (e.g., self-hosted runners). Consider using a relative path or environment variable like$RUNNER_TEMPto make this more portable.