Files
docker-py-revanced/.github/workflows/pre-commit.yml
T
Nikhil Badyal d56bc61c8b 👷 Updated CI Job Names
2022-10-03 00:12:32 +05:30

40 lines
985 B
YAML

name: Pre-commit update Checker
on:
schedule:
- cron: "15 2 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
auto-update:
timeout-minutes: 5
if: github.repository == 'nikhilbadyal/docker-py-revanced'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4.2.0
with:
python-version: '3.x'
- name: Install pre-commit
run: pip install pre-commit
- name: Updated Hooks
run: pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GH_TOKEN }}
branch: update/pre-commit-autoupdate
title: ⬆️Update pre-commit hooks
commit-message: ⬆️updated pre-commit hooks
body: ✨Update versions of tools in pre-commit configs to latest version
labels: pre-commit✨