File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 37
37
python -m pip install --upgrade pdm pre-commit
38
38
pdm install -G dev --frozen-lockfile
39
39
40
- - uses : actions/cache@v3
40
+ - uses : actions/cache@v4
41
41
with :
42
42
path : ~/.cache/pre-commit
43
43
key : pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
@@ -97,17 +97,23 @@ jobs:
97
97
env :
98
98
GITGUARDIAN_API_KEY : ${{ secrets.GITGUARDIAN_API_KEY }}
99
99
100
- - uses : codecov/codecov-action@v3
100
+ - uses : codecov/codecov-action@v4
101
101
with :
102
102
file : ./coverage.xml
103
103
flags : unittests
104
104
name : codecov-umbrella
105
+ token : ${{ secrets.CODECOV_TOKEN }}
105
106
fail_ci_if_error : false
106
107
107
108
release :
108
109
runs-on : ubuntu-latest
109
110
needs : [lint, build]
110
111
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
112
+
113
+ # This is required for `gh release create` to work
114
+ permissions :
115
+ contents : write
116
+
111
117
steps :
112
118
- uses : actions/checkout@v4
113
119
with :
@@ -137,11 +143,7 @@ jobs:
137
143
138
144
- name : Create Release
139
145
id : create_release
140
- uses : actions/create-release@master
141
146
env :
142
147
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
143
- with :
144
- tag_name : ${{ steps.tags.outputs.tag }}
145
- release_name : ${{ steps.tags.outputs.tag }}
146
- draft : true
147
- prerelease : false
148
+ run : |
149
+ gh release create --draft ${{ steps.tags.outputs.tag }}
You can’t perform that action at this time.
0 commit comments