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 3737 python -m pip install --upgrade pdm pre-commit
3838 pdm install -G dev --frozen-lockfile
3939
40- - uses : actions/cache@v3
40+ - uses : actions/cache@v4
4141 with :
4242 path : ~/.cache/pre-commit
4343 key : pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
@@ -97,17 +97,23 @@ jobs:
9797 env :
9898 GITGUARDIAN_API_KEY : ${{ secrets.GITGUARDIAN_API_KEY }}
9999
100- - uses : codecov/codecov-action@v3
100+ - uses : codecov/codecov-action@v4
101101 with :
102102 file : ./coverage.xml
103103 flags : unittests
104104 name : codecov-umbrella
105+ token : ${{ secrets.CODECOV_TOKEN }}
105106 fail_ci_if_error : false
106107
107108 release :
108109 runs-on : ubuntu-latest
109110 needs : [lint, build]
110111 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+
111117 steps :
112118 - uses : actions/checkout@v4
113119 with :
@@ -137,11 +143,7 @@ jobs:
137143
138144 - name : Create Release
139145 id : create_release
140- uses : actions/create-release@master
141146 env :
142147 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