Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Actions Composite Actions @ Branch

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?

like image 577
nray Avatar asked Oct 21 '25 11:10

nray


1 Answers

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

- uses: ./.github/composite-actions
like image 83
nray Avatar answered Oct 23 '25 18:10

nray



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!