File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 48
48
49
49
steps :
50
50
- uses : actions/checkout@v3
51
+ with :
52
+ token : ${{ secrets.GITHUB_TOKEN }}
53
+ fetch-depth : 0
54
+
55
+ - name : Install dependencies
56
+ run : |
57
+ python -m pip install --upgrade pip
58
+ pip install build toml
59
+
51
60
52
61
- name : Install dependencies
53
62
run : |
@@ -61,11 +70,13 @@ jobs:
61
70
echo "version=$version" >> $GITHUB_OUTPUT
62
71
63
72
- name : Create and push tag
73
+ env :
74
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64
75
run : |
65
76
git config --local user.email "[email protected] "
66
77
git config --local user.name "GitHub Action"
67
78
git tag -a "v${{ steps.get_version.outputs.version }}" -m "Release v${{ steps.get_version.outputs.version }}"
68
- git push origin "v${{ steps.get_version.outputs.version }}"
79
+ git push -f https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git "v${{ steps.get_version.outputs.version }}"
69
80
70
81
publish :
71
82
needs : test
You can’t perform that action at this time.
0 commit comments