File tree Expand file tree Collapse file tree 1 file changed +7
-25
lines changed Expand file tree Collapse file tree 1 file changed +7
-25
lines changed Original file line number Diff line number Diff line change 6
6
version :
7
7
description : ' Next Version'
8
8
required : true
9
+ push :
10
+ branches :
11
+ - " test-push-to-branch"
9
12
10
13
env :
11
14
python_version : ' 3.x'
@@ -15,37 +18,16 @@ permissions:
15
18
16
19
jobs :
17
20
release :
18
- runs-on : ubuntu-latest-4core
21
+ runs-on : ubuntu-latest
19
22
timeout-minutes : 10
20
23
steps :
21
24
- uses : actions/checkout@v4
22
25
with :
23
- token : ${{ secrets.release_token }}
26
+ token : ${{ secrets.GITHUB_TOKEN }}
24
27
25
28
- name : Set author in Git
26
29
run : |
27
30
git config user.name github-actions
28
31
git config user.email github-actions@github.com
29
-
30
- - uses : actions/setup-python@v5
31
- with :
32
- python-version : ${{ env.python_version }}
33
-
34
- - name : Bump version
35
- run : |
36
- python .scripts/bump.py ${{ github.event.inputs.version }}
37
- git commit --message ${{ github.event.inputs.version }} setup.py
38
- git tag v${{ github.event.inputs.version }}
39
-
40
- - uses : ./.github/actions/python-build-publish
41
- with :
42
- repository : testpypi
43
- token : ${{ secrets.test_pypi_token }}
44
-
45
- - name : Push release commit
46
- run : git push --tags origin ${{ github.ref_name }}
47
-
48
- - uses : ncipollo/release-action@v1
49
- with :
50
- tag : v${{ github.event.inputs.version }}
51
- draft : true
32
+ # git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
33
+ git push origin HEAD
You can’t perform that action at this time.
0 commit comments