Skip to content

Commit a00832b

Browse files
authored
fix: update action.yml and entrypoint.sh to fix #23 (#25)
1 parent a8a4d8a commit a00832b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ inputs:
3232
runs:
3333
using: "composite"
3434
steps:
35+
- name: Install action dependencies
36+
shell: bash
37+
run: |
38+
if [[ "$RUNNER_OS" == "Linux" ]]; then
39+
# https://github.com/pypa/setuptools/issues/3269
40+
export DEB_PYTHON_INSTALL_LAYOUT=deb
41+
fi
42+
python3 -m pip install -r "$GITHUB_ACTION_PATH/requirements.txt"
43+
- name: Run commit-check
3544
- run: ${{ github.action_path }}/entrypoint.sh
3645
shell: bash
3746
env:

entrypoint.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ set -euo pipefail
33

44
ret_code=0
55

6-
install_dependencies(){
7-
if [[ "$RUNNER_OS" == "Linux" ]]; then
8-
# https://github.com/pypa/setuptools/issues/3269
9-
export DEB_PYTHON_INSTALL_LAYOUT=deb
10-
fi
11-
python3 -m pip install -r requirements.txt
12-
}
13-
146
run_commit_check(){
157
args=""
168
if [[ "$MESSAGE" == "true" ]]; then
@@ -48,7 +40,6 @@ add_job_summary(){
4840
fi
4941
}
5042

51-
install_dependencies
5243
run_commit_check
5344
add_job_summary
5445

0 commit comments

Comments
 (0)