Skip to content

Commit

Permalink
hato-botのCIを反映するよ!
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and massongit committed Oct 19, 2024
1 parent 5c2e226 commit e63ea79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": ["github>dev-hato/renovate-config"],
"ignoreDeps": ["pyink"],
"packageRules": [
{
"matchPackageNames": ["postgres"],
Expand Down
4 changes: 4 additions & 0 deletions scripts/pr_format/pr_format/format.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash

pipenv run python "${GITHUB_WORKSPACE}/scripts/pr_format/pr_format/fix_pipfile.py"
tag_name="$(yq '.jobs.pr-super-lint.steps[-1].uses' .github/workflows/pr-test.yml | sed -e 's;/slim@.*;:slim;g')"
tag_version="$(yq '.jobs.pr-super-lint.steps[-1].uses | line_comment' .github/workflows/pr-test.yml)"
pyink_version="$(docker run --rm --entrypoint '' "ghcr.io/${tag_name}-${tag_version}" /bin/sh -c 'pyink --version' | grep pyink | awk '{ print $2 }')"
sed -i -e "s/pyink = .*/pyink = \"==${pyink_version}\"/g" Pipfile
pipenv install --dev
pipenv run autopep8 --exit-code --in-place --recursive .
pipenv run pyink --config .python-black .
Expand Down

0 comments on commit e63ea79

Please sign in to comment.