File tree Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
steps :
9
9
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
10
10
- uses : Songmu/tagpr@3dca11e7c0d68637ee212ddd35acc3d30a7403a4 # v1.5.0
11
+ id : run-tagpr
11
12
env :
12
13
GITHUB_TOKEN : ${{ secrets.MH4GF_PAT }}
14
+ outputs :
15
+ tagpr-tag : ${{ steps.run-tagpr.outputs.tag }}
16
+
17
+ bump_major_branch :
18
+ if : needs.tagpr.outputs.tagpr-tag != ''
19
+ needs : tagpr
20
+ runs-on : ubuntu-latest
21
+ timeout-minutes : 5
22
+ permissions :
23
+ contents : write
24
+ steps :
25
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
+ - name : Git config
27
+ run : |
28
+ git config user.name "github-actions[bot]"
29
+ git config user.email "github-actions[bot]@users.noreply.github.com"
30
+ - name : Get major version
31
+ run : echo "MAJOR_VERSION=$(echo ${{ needs.tagpr.outputs.tagpr-tag }} | cut -d '.' -f 1)" >> "$GITHUB_ENV"
32
+ - name : Push new tag
33
+ run : git push --force origin "HEAD:refs/heads/${MAJOR_VERSION}"
You can’t perform that action at this time.
0 commit comments