File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : versionbump
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - main
8+ pull_request :
9+ branches :
10+ - master
11+ - main
12+ release :
13+ types :
14+ - released
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v2
21+ - name : Bump version
22+ run : |
23+ git config --global user.name 'ProjectBot'
24+ git config --global user.email 'bot@users.noreply.github.com'
25+ VERSION=$(sed -n '0,/.*<Version>\(.*\)<\/Version>.*/s//\1/p' module.xml)
26+ VERSION=`echo $VERSION | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
27+ sed -i "0,/<Version>\(.*\)<\/Version>/s//<Version>$VERSION<\/Version>/" module.xml
28+ git add module.xml
29+ git commit -m 'auto bump version'
30+ git push
Original file line number Diff line number Diff line change 2525 push : false
2626 load : true
2727 tags : ${{ github.repository }}:${{ github.sha }}
28- build-args : TESTS=1
29- - name : Bump version
30- run : |
31- git config --global user.name 'ProjectBot'
32- git config --global user.email 'bot@users.noreply.github.com'
33- VERSION=$(sed -n '0,/.*<Version>\(.*\)<\/Version>.*/s//\1/p' module.xml)
34- VERSION=`echo $VERSION | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
35- sed -i "0,/<Version>\(.*\)<\/Version>/s//<Version>$VERSION<\/Version>/" module.xml
36- git add module.xml
37- git commit -m 'auto bump version'
38- git push
28+ build-args : TESTS=1
You can’t perform that action at this time.
0 commit comments