Reputation: 175
In Github Actions composite actions, you must specify the branch where the composite action is located, e.g.,
- uses: /username/repo-name/.github/composite-actions@main
Is there a way to specify the current branch instead rather than hardcode @main
?
Upvotes: 4
Views: 1342
Reputation: 175
After checking further, it seems using the relative path works. For example:
- uses: ./.github/composite-actions
Upvotes: 5