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,9 @@ name: Deploy and Release CryptoAnalysis
22
33on : [workflow_dispatch]
44
5+ env :
6+ BRANCH_NAME : snapshot_version
7+
58jobs :
69 deployment :
710 runs-on : ubuntu-latest
4649 name : released-files
4750 path : apps/
4851
49- synchronize :
52+ snapshot-version :
5053 runs-on : ubuntu-latest
5154 needs : deployment
5255 steps :
5558 with :
5659 fetch-depth : 0
5760
58- - name : Synchronize master and develop
61+ - name : Create branch and update to next SNAPSHOT version
62+ run : |
63+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
64+ git config --global user.name "github-actions[bot]"
65+ git checkout -b ${{ env.BRANCH_NAME }} master
66+ mvn versions:set versions:commit -DnextSnapshot
67+ git ls-files | grep 'pom.xml$' | xargs git add
68+ git commit --allow-empty -am "Update version to next SNAPSHOT"
69+ git push origin ${{ env.BRANCH_NAME }}
70+ env :
71+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
72+
73+ - name : Create PR for SNAPSHOT version
5974 run : |
60- gh pr create -B develop -H master -t "Synchronize version in master and develop " -b "Update the version in `develop` from `master` "
75+ gh pr create --draft - B develop -H ${{ env.BRANCH_NAME }} -t "Update to next SNAPSHOT version " -b "Update to next SNAPSHOT version "
6176 env :
6277 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6378
You can’t perform that action at this time.
0 commit comments