A GitHub Action to conveniently reference local actions!
- ✅ Automatically resolves the local composite action path
- ✅ Creates symlinks to use
./../org/repo/path/to/action
references - ✅ Compatible with default GitHub Actions behavior
name: Your composite action
runs:
using: 'composite'
steps:
- uses: wei18/local-composite-action@v1
with:
action_repository: ${{ github.action_repository }}
- name: Run local your composite action
uses: ./../org/repo/.github/composite-actions/example/just-composite-action
- name: Run local your second composite action
uses: ./../org/repo/.github/composite-actions/example/another-composite-action
Important
Adjust the relative path based on the symlink location (typically one level above $GITHUB_WORKSPACE
).
This version emphasizes that ./../
is required and clarifies why it needs to be used.
Name | Description | Required | Default |
---|---|---|---|
action_path |
The actual path to the composite action | ${{ github.action_path }} | |
action_repository |
The repository name in the form of org/repo |
✅ |
In GitHub Actions, the composite
action supports uses: ./local-path
, but when dealing with monorepos or complex path references, symlinks may not exist, causing failures. This tool helps automatically create the required symlinks, making the references work seamlessly!
MIT © wei18