File tree Expand file tree Collapse file tree 3 files changed +30
-20
lines changed
Expand file tree Collapse file tree 3 files changed +30
-20
lines changed Original file line number Diff line number Diff line change 8282
8383 - run : make bootstrap
8484 - run : make check
85+
86+ push_dirty_tag :
87+ runs-on : ubuntu-latest
88+ needs : [qa, test, build]
89+ steps :
90+ -
91+ name : Get tag
92+ id : get_tag
93+ run : |
94+ git remote add upstream https://github.com/peak/s5cmd.git
95+ git fetch --tags upstream
96+ VERSION=$(git describe --tags --exclude '*-' --abbrev=0)
97+ echo "VERSION=$VERSION" >> $GITHUB_ENV
98+ echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
99+ echo "version=$VERSION" >> $GITHUB_OUTPUT
100+ echo "short_sha=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_OUTPUT
101+
102+ -
103+ name : Push dirty tag
104+ id : push_dirty_tag
105+ run : |
106+ git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
107+ git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
108+ git tag -a "${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}" -m "Release ${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}"
109+ git push origin "${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}"
Original file line number Diff line number Diff line change 11name : docker
22on :
3- workflow_dispatch : {}
4- push :
5- branches :
6- - " coreweave"
3+ release :
4+ types : [published]
75jobs :
86 multi :
97 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 11name : goreleaser
22on :
3- workflow_dispatch : {}
4- push :
5- branches :
6- - " coreweave"
3+ release :
4+ types : [published]
75jobs :
86 caios_test :
97 name : caios-test
4038 with :
4139 go-version : ' 1.22'
4240
43- - name : Get tag
44- id : get_tag
45- run : |
46- git remote add upstream https://github.com/peak/s5cmd.git
47- git fetch --tags upstream
48- VERSION=$(git describe --tags --exclude '*-' --abbrev=0)
49- echo "VERSION=$VERSION" >> $GITHUB_ENV
50- echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
51- echo "version=$VERSION" >> $GITHUB_OUTPUT
52- echo "short_sha=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_OUTPUT
53-
5441 -
5542 name : Run GoReleaser
5643 uses : goreleaser/goreleaser-action@v2
5946 args : release --rm-dist
6047 env :
6148 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62- GORELEASER_CURRENT_TAG : ${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}
49+
6350
You can’t perform that action at this time.
0 commit comments