Skip to content

fix: update action.yml and entrypoint.sh to fix #23 #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ inputs:
runs:
using: "composite"
steps:
- name: Install action dependencies
shell: bash
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
# https://github.com/pypa/setuptools/issues/3269
export DEB_PYTHON_INSTALL_LAYOUT=deb
fi
python3 -m pip install -r "$GITHUB_ACTION_PATH/requirements.txt"
- name: Run commit-check
- run: ${{ github.action_path }}/entrypoint.sh
shell: bash
env:
Expand Down
9 changes: 0 additions & 9 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ set -euo pipefail

ret_code=0

install_dependencies(){
if [[ "$RUNNER_OS" == "Linux" ]]; then
# https://github.com/pypa/setuptools/issues/3269
export DEB_PYTHON_INSTALL_LAYOUT=deb
fi
python3 -m pip install -r requirements.txt
}

run_commit_check(){
args=""
if [[ "$MESSAGE" == "true" ]]; then
Expand Down Expand Up @@ -48,7 +40,6 @@ add_job_summary(){
fi
}

install_dependencies
run_commit_check
add_job_summary

Expand Down