File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ name: Autobump
22
33on :
44 workflow_dispatch :
5+ repository_dispatch :
6+ types : [cocogitto-released]
57
68jobs :
79 release :
1214 with :
1315 fetch-depth : 0
1416
17+ - name : Update cocogitto version
18+ if : github.event_name == 'repository_dispatch' && github.event.action == 'cocogitto-released'
19+ run : |
20+ VERSION="${{ github.event.client_payload.version }}"
21+ echo "Updating version.env to use cocogitto version: $VERSION"
22+ echo "VERSION=$VERSION" > version.env
23+ git add version.env
24+ git commit -m "feat: update cocogitto to $VERSION"
25+ git push
26+
1527 - name : SemVer release
1628 id : release
1729 uses : cocogitto/cocogitto-action@main
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33CUR_DIR=$( pwd)
4- VERSION=6.4.0
4+ . " $( dirname " $0 " ) /version.env "
55BIN_DIR=" $HOME /.local/bin"
66
77PLATFORM=$( uname -s | tr ' [:upper:]' ' [:lower:]' )
Original file line number Diff line number Diff line change 1+ VERSION = 6.4.0
You can’t perform that action at this time.
0 commit comments