-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
17 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,6 @@ inputs: | |
description: "The version of Python to use, such as 3.11.0" | ||
required: true | ||
type: string | ||
github-token: | ||
description: "The GitHub token to use for pushing changes to the repository" | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
|
@@ -101,19 +97,6 @@ runs: | |
run: | | ||
npx prettier --write --log-level silent . | ||
- name: Lint commit and push | ||
id: lint-commit-and-push | ||
shell: bash | ||
run: | | ||
git pull | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git commit -m "chore: [gh] lint w black / prettier [skip ci]" | ||
git push https://${{ env.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }} | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.github-token }} | ||
|
||
# see: https://pre-commit.ci/lite.html | ||
- name: pre-commit | ||
id: pre-commit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ jobs: | |
if: env.VERSION_CHANGED == 'true' | ||
id: update_version | ||
run: | | ||
echo "# -*- coding: utf-8 -*-" > __version__.py | ||
echo "__version__ = '${{ env.NEXT_VERSION }}'" > __version__.py | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
__version__ = '1.1.3' | ||
# -*- coding: utf-8 -*- | ||
__version__ = "1.1.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
__version__ = '1.1.3' | ||
# -*- coding: utf-8 -*- | ||
__version__ = "1.1.3" |