File tree 3 files changed +22
-7
lines changed
3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 46
46
contents : write
47
47
steps :
48
48
- uses : actions/checkout@v4
49
+ with :
50
+ persist-credentials : true
49
51
50
52
- name : Download Package
51
53
uses : actions/download-artifact@v4
@@ -59,11 +61,13 @@ jobs:
59
61
attestations : true
60
62
61
63
- name : Push tag
64
+ env :
65
+ VERSION : ${{ github.event.inputs.version }}
62
66
run : |
63
67
git config user.name "pytest bot"
64
68
git config user.email "[email protected] "
65
- git tag --annotate --message=v${{ github.event.inputs.version }} ${{ github.event.inputs.version }} ${{ github.sha }}
66
- git push origin ${{ github.event.inputs.version }}
69
+ git tag --annotate --message=v"$VERSION" "$VERSION" ${{ github.sha }}
70
+ git push origin "$VERSION"
67
71
68
72
release-notes :
69
73
@@ -98,9 +102,11 @@ jobs:
98
102
pip install --upgrade tox
99
103
100
104
- name : Generate release notes
105
+ env :
106
+ VERSION : ${{ github.event.inputs.version }}
101
107
run : |
102
108
sudo apt-get install pandoc
103
- tox -e generate-gh-release-notes -- ${{ github.event.inputs.version }} scripts/latest-release-notes.md
109
+ tox -e generate-gh-release-notes -- "$VERSION" scripts/latest-release-notes.md
104
110
105
111
- name : Publish GitHub Release
106
112
uses : softprops/action-gh-release@v2
Original file line number Diff line number Diff line change 30
30
- uses : actions/checkout@v4
31
31
with :
32
32
fetch-depth : 0
33
+ persist-credentials : false
33
34
34
35
- name : Set up Python
35
36
uses : actions/setup-python@v5
@@ -43,10 +44,16 @@ jobs:
43
44
44
45
- name : Prepare release PR (minor/patch release)
45
46
if : github.event.inputs.major == 'no'
47
+ env :
48
+ BRANCH : ${{ github.event.inputs.branch }}
49
+ PRERELEASE : ${{ github.event.inputs.prerelease }}
46
50
run : |
47
- tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --prerelease='${{ github.event.inputs.prerelease }}'
51
+ tox -e prepare-release-pr -- "$BRANCH" ${{ github.token }} --prerelease="$PRERELEASE"
48
52
49
53
- name : Prepare release PR (major release)
50
54
if : github.event.inputs.major == 'yes'
55
+ env :
56
+ BRANCH : ${{ github.event.inputs.branch }}
57
+ PRERELEASE : ${{ github.event.inputs.prerelease }}
51
58
run : |
52
- tox -e prepare-release-pr -- ${{ github.event.inputs.branch }} ${{ github.token }} --major --prerelease='${{ github.event.inputs.prerelease }}'
59
+ tox -e prepare-release-pr -- "$BRANCH" ${{ github.token }} --major --prerelease="$PRERELEASE"
Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ jobs:
23
23
uses : actions/checkout@v4
24
24
with :
25
25
fetch-depth : 0
26
+ persist-credentials : false
26
27
27
28
- name : Setup Python
28
29
uses : actions/setup-python@v5
29
30
with :
30
31
python-version : " 3.11"
31
32
cache : pip
33
+
32
34
- name : requests-cache
33
35
uses : actions/cache@v4
34
36
with :
41
43
python -m pip install --upgrade pip
42
44
pip install packaging requests tabulate[widechars] tqdm requests-cache platformdirs
43
45
44
-
45
46
- name : Update Plugin List
46
47
run : python scripts/update-plugin-list.py
47
48
61
62
- name : Instruct the maintainers to trigger CI by undrafting the PR
62
63
env :
63
64
GITHUB_TOKEN : ${{ github.token }}
65
+ PULL_REQUEST_NUMBER : ${{ steps.pr.outputs.pull-request-number }}
64
66
run : >-
65
67
gh pr comment
66
68
--body 'Please mark the PR as ready for review to trigger PR checks.'
67
69
--repo '${{ github.repository }}'
68
- '${{ steps.pr.outputs.pull-request-number }}'
70
+ "$PULL_REQUEST_NUMBER"
You can’t perform that action at this time.
0 commit comments