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 : Update Versions
2+ on : create
3+
4+ # Sets the manifest versions when a release branch is created
5+ jobs :
6+ updateVersions :
7+ runs-on : ubuntu-latest
8+ if : ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
9+ steps :
10+ - uses : actions/checkout@v2
11+
12+ - name : get-release-branch-version
13+ uses : valadas/get-release-branch-version@v1
14+ id : branchVersion
15+
16+ - name : set-dnn-manifest-versions
17+ uses : valadas/set-dnn-manifest-versions@v1
18+ with :
19+ # Version to set in the manifests, should be a manifest save version string as in 09.06.00
20+ version : ${{ steps.branchVersion.outputs.manifestSafeVersionString }}
21+ - run : git add .
22+ - run : git config user.name $ACTOR
23+ env :
24+ ACTOR : ${{ github.actor }}
25+ - run : git diff --quiet && git diff --staged --quiet || git commit -m 'Commit new manifest versions'
26+ - run : git push https://$ACTOR:$TOKEN@github.com/$REPOSITORY.git
27+ env :
28+ ACTOR : ${{ github.actor }}
29+ TOKEN : ${{ github.token }}
30+ REPOSITORY : ${{ github.repository }}
You can’t perform that action at this time.
0 commit comments