Skip to content

Setup Symlink for Action Repository

Actions
Find and create symlink to the action repository path based on the provided inputs
1.1.1
Latest
Star (3)

📦 local-composite-action

A GitHub Action to conveniently reference local actions!

✨ Features

  • ✅ Automatically resolves the local composite action path
  • ✅ Creates symlinks to use ./../org/repo/path/to/action references
  • ✅ Compatible with default GitHub Actions behavior

🔧 Usage

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.


📥 Inputs

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

💡 Why this?

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!


📄 License

MIT © wei18

Setup Symlink for Action Repository is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Find and create symlink to the action repository path based on the provided inputs
1.1.1
Latest

Setup Symlink for Action Repository is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.