-
Notifications
You must be signed in to change notification settings - Fork 753
41 lines (36 loc) · 1.52 KB
/
updateVersions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Update Versions
on: create
# Sets the manifest and other files version upon creation of a release branch
jobs:
updateVersions:
runs-on: ubuntu-latest
if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
steps:
- uses: actions/checkout@v4
- name: Get the release branch version
uses: valadas/get-release-branch-version@v1.0.1
id: branchVersion
- name: Set versions
uses: valadas/set-dnn-manifest-versions@v1.3.0
with:
version: ${{ steps.branchVersion.outputs.manifestSafeVersionString }}
skipFile: "./Build/Tasks/unversionedManifests.txt"
includeSolutionInfo: true
includeIssueTemplates: true
includePackageJson: true
includeDnnReactCommon: true
- name: Update Yarn versions
shell: pwsh
run: yarn install --mode=update-lockfile --no-immutable
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Updates versions as per release candidate creation
title: Updates versions as per release candidate creation
body: This is a release management task and we are self-approving it for that reason.
# A comma separated list of labels.
labels: "Type: Build/Release"
# The pull request branch name.
branch: update-versions/patch
# The branch suffix type.
branch-suffix: short-commit-hash