File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update Stable Tag
2
+
3
+ on : [pull_request, push]
4
+ # TODO CJR: change event trigger away from test
5
+ # release:
6
+ # types: [released]
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ # TODO CJR: s/test_chad/stable
12
+ jobs :
13
+ update-stable-tag :
14
+ runs-on : ubuntu-24.04
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v4
18
+ with :
19
+ # TODO CJR: why does fetch-tags not seem to pull the tag?
20
+ fetch-depth : 0
21
+ fetch-tags : true
22
+ # TODO CJR: do not think we need this with github.ref
23
+ - name : Determine build to mark
24
+ # returns in reverse chronological order by default
25
+ run : echo "STABLE=$(git rev-list --tags --max-count=1)" >> $GITHUB_ENV
26
+ - name : Delete current, local stable tag
27
+ run : git tag -d test_chad
28
+ - name : Create new stable tag
29
+ run : git tag test_chad $STABLE # TODO CJR use this for final version ${{ github.ref }}
30
+ - name : Force push to overwrite current stable
31
+ run : git push -f --tags
You can’t perform that action at this time.
0 commit comments