4

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?

1 Answer 1

5

After checking further, it seems using the relative path works. For example:

- uses: ./.github/composite-actions
Sign up to request clarification or add additional context in comments.

2 Comments

I don't think it works if the action in in a different repository or am I wrong?
For action in different repo stackoverflow.com/a/68286342/4955969

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.