Skip to content

Commit 3a896db

Browse files
authored
change ${{ github.action_path }} with $GITHUB_ACTION_PATH (#160)
1 parent e80c039 commit 3a896db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,18 @@ runs:
111111
fi
112112
fi
113113
if [[ "${{runner.os}}" == "macOS" ]]; then
114-
python3 -m venv '${{ github.action_path }}/venv'
115-
source '${{ github.action_path }}/venv/bin/activate'
114+
python3 -m venv "$GITHUB_ACTION_PATH/venv"
115+
source "$GITHUB_ACTION_PATH/venv/bin/activate"
116116
fi
117-
python3 -m pip install -r '${{ github.action_path }}/requirements.txt'
117+
python3 -m pip install -r "$GITHUB_ACTION_PATH/requirements.txt"
118118
clang-tools -i ${{ inputs.version }} -b
119119
120120
- name: Run cpp-linter
121121
id: cpp-linter
122122
shell: bash
123123
run: |
124-
if [[ "${{runner.os}}" == "macOS" ]];then
125-
source '${{ github.action_path }}/venv/bin/activate'
124+
if [[ "${{runner.os}}" == "macOS" ]]; then
125+
source "$GITHUB_ACTION_PATH/venv/bin/activate"
126126
fi
127127
cpp-linter \
128128
--style="${{ inputs.style }}" \

0 commit comments

Comments
 (0)