File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
2
on : [push, pull_request]
4
3
5
4
jobs :
6
5
pre-commit :
7
- runs-on : ubuntu-20.04
6
+ permissions :
7
+ contents : read
8
+
9
+ runs-on : ubuntu-latest
8
10
steps :
9
11
- uses : actions/checkout@v4
12
+ with :
13
+ persist-credentials : false
10
14
- uses : actions/setup-python@v5
11
- -
uses :
pre-commit/[email protected]
15
+ - uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
12
16
build :
13
- runs-on : ubuntu-20.04
17
+ runs-on : ubuntu-latest
18
+ permissions :
19
+ contents : write
20
+
14
21
steps :
15
22
- uses : actions/checkout@v4
23
+ with :
24
+ persist-credentials : false
16
25
- uses : actions/setup-python@v5
17
26
with :
18
27
python-version : " 3.10"
67
76
name : diffs
68
77
path : |
69
78
diffs/
70
- - name : Output artifacts URL
71
- run : |
72
- echo 'Artifact URL:' \
73
- '${{ steps.diffs-artifact-upload.outputs.artifact-url }}' \
74
- >> $GITHUB_STEP_SUMMARY
75
79
- name : Publish cheatsheets and handouts
76
80
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
77
- uses : peaceiris/actions-gh-pages@v4
81
+ uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
78
82
with :
79
83
github_token : ${{ secrets.GITHUB_TOKEN }}
80
84
publish_dir : ./docs/_build/html/
Original file line number Diff line number Diff line change 10
10
- id : end-of-file-fixer
11
11
- id : trailing-whitespace
12
12
- repo : https://github.com/pycqa/flake8
13
- rev : 4.0.1
13
+ rev : 7.3.0
14
14
hooks :
15
15
- id : flake8
You can’t perform that action at this time.
0 commit comments