File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " pre-commit autoupdate"
2
+
3
+ on :
4
+ schedule :
5
+ - cron : " 0 0 * * 0" # every Sunday at 00:00 UTC
6
+ workflow_dispatch :
7
+
8
+
9
+ jobs :
10
+ autoupdate :
11
+ name : ' pre-commit autoupdate'
12
+ runs-on : ubuntu-latest
13
+ if : github.repository == 'xarray-contrib/pint-xarray'
14
+ steps :
15
+ - name : checkout
16
+ uses : actions/checkout@v2
17
+ - name : Cache pip and pre-commit
18
+ uses : actions/cache@v2
19
+ with :
20
+ path : |
21
+ ~/.cache/pre-commit
22
+ ~/.cache/pip
23
+ key : ${{ runner.os }}-pre-commit-autoupdate
24
+ - name : setup python
25
+ uses : actions/setup-python@v2
26
+ - name : upgrade pip
27
+ run : python -m pip install --upgrade pip
28
+ - name : install pre-commit
29
+ run : python -m pip install --upgrade pre-commit
30
+ - name : version info
31
+ run : python -m pip list
32
+ - name : autoupdate
33
+ uses : technote-space/create-pr-action@837dbe469b39f08d416889369a52e2a993625c84
34
+ with :
35
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
+ EXECUTE_COMMANDS : |
37
+ python -m pre_commit autoupdate
38
+ COMMIT_MESSAGE : ' pre-commit: autoupdate hook versions'
39
+ PR_TITLE : ' pre-commit: autoupdate hook versions'
40
+ PR_BRANCH_PREFIX : ' pre-commit/'
41
+ PR_BRANCH_NAME : ' autoupdate-${PR_ID}'
You can’t perform that action at this time.
0 commit comments