nray
nray

Reputation: 175

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?

Upvotes: 4

Views: 1342

Answers (1)

nray
nray

Reputation: 175

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

- uses: ./.github/composite-actions

Upvotes: 5

Related Questions