mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
💚 Fixed pre-commit-autoupdate.yml
This commit is contained in:
@@ -16,25 +16,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
|
||||||
uses: actions/setup-python@v4.2.0
|
uses: actions/setup-python@v4.2.0
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install pre-commit
|
- name: Install pre-commit
|
||||||
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
|
||||||
run: pip install pre-commit
|
run: pip install pre-commit
|
||||||
|
|
||||||
- name: Updated Hooks
|
- name: Updated Hooks
|
||||||
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
|
||||||
run: pre-commit autoupdate
|
run: pre-commit autoupdate
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: ${{ env.HAVE_GH_TOKEN == 'true' }}
|
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
with:
|
||||||
token: $GH_TOKEN
|
token: $GH_TOKEN
|
||||||
@@ -43,5 +38,3 @@ jobs:
|
|||||||
commit-message: ⬆️updated pre-commit hooks
|
commit-message: ⬆️updated pre-commit hooks
|
||||||
body: ✨Update versions of tools in pre-commit configs to latest version
|
body: ✨Update versions of tools in pre-commit configs to latest version
|
||||||
labels: pre-commit✨
|
labels: pre-commit✨
|
||||||
env:
|
|
||||||
HAVE_GH_TOKEN: ${{ secrets.GH_TOKEN != '' }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user