Skip to content

Commit 2a4b013

Browse files
feat: use github.action_path instead of donwloading the script from main branch
https://docs.github.com/en/actions/learn-github-actions/contexts#github-context > github.action_path string > The path where your action is located. > You can use this path to easily access files located in the same repository as your action. > This attribute is only supported in composite actions. * You don't have to download the script, because you can access to the script with `github.action_path` * Downloading the script from main branch isn't good. main branch is unreleased and Even if you pin the Action's version, Action may be broken suddenly
1 parent 1627fee commit 2a4b013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
- run: curl -sfL https://raw.githubusercontent.com/shmokmt/actions-setup-tfcmt/main/install.sh | sudo sh -s -- -b /usr/local/bin -d ${TFCMT_VERSION}
11+
- run: sudo bash ${{ github.action_path }}/install.sh -b /usr/local/bin -d ${TFCMT_VERSION}
1212
shell: bash
1313
env:
1414
TFCMT_VERSION: ${{ inputs.version }}

0 commit comments

Comments
 (0)