Skip to content

Commit 051cd12

Browse files
committed
auto increment main version on snap
1 parent e5a1976 commit 051cd12

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/branch-snap.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,18 @@ jobs:
1010
check-script:
1111
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
1212
with:
13-
configuration_file_path: '.config/snap-flow.json'
13+
configuration_file_path: '.config/snap-flow.json'
14+
15+
create-pull-request:
16+
if: github.ref == 'refs/heads/testing_action'
17+
steps:
18+
- name: Check out
19+
uses: actions/checkout@v2
20+
- name: Create version.json update PR
21+
uses: peter-evans/create-pull-request@v4
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
commit-message: Update main version
25+
title: 'Update main version'
26+
branch: merge/update-main-version
27+
# awk '/"version":/{split($2,a,/[.]/);$1=" \"version\":";$2=a[1]"."a[2]+1"$3"};1' version.json

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "2.39",
44
"publicReleaseRefSpec": [
55
"^refs/heads/release$",
6-
"^refs/heads/prerelease$",
6+
"^refs/heads/prerelease$",
77
"^refs/heads/main$",
88
"^refs/heads/patch/.*$"
99
],

0 commit comments

Comments
 (0)