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?
After checking further, it seems using the relative path works. For example:
- uses: ./.github/composite-actions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With