Skip to content

Commit eb3fc27

Browse files
authored
Create updateVersions.yml
1 parent 92f57be commit eb3fc27

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 }}

0 commit comments

Comments
 (0)