Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit 52fbac4

Browse files
authored
reusable workflows
Signed-off-by: Divanshu Chauhan <[email protected]>
1 parent 87ce368 commit 52fbac4

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

.github/workflows/pre-commit-autoupdate.yml

+1-29
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,4 @@ on:
55
- cron: "0 0 * * 1" # every weekday at midnight
66
jobs:
77
auto-update:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v3
11-
- name: Set up Python
12-
uses: actions/setup-python@v4
13-
with:
14-
python-version: "3.10"
15-
- name: Install pre-commit
16-
run: pip install pre-commit
17-
- name: Run pre-commit autoupdate
18-
run: pre-commit autoupdate
19-
- name: Create Pull Request
20-
id: create_pull_request
21-
uses: peter-evans/create-pull-request@v4
22-
with:
23-
token: ${{ secrets.GITHUB_TOKEN }}
24-
branch: update/pre-commit-autoupdate
25-
title: Auto-update pre-commit hooks
26-
commit-message: Auto-update pre-commit hooks
27-
body: |
28-
Update versions of tools in pre-commit
29-
configs to latest version
30-
labels: dependencies, automerge
31-
- name: Automerge PR
32-
uses: pascalgn/[email protected]
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
MERGE_METHOD: squash
36-
PULL_REQUEST: ${{ steps.create_pull_request.outputs.pull-request-number }}
8+
uses: divkix/reusable-workflows/.github/workflows/pre-commit-autoupdate.yml@main

0 commit comments

Comments
 (0)