Skip to content

Commit

Permalink
auto increment main version on snap
Browse files Browse the repository at this point in the history
  • Loading branch information
dibarbet committed Jul 13, 2024
1 parent e5a1976 commit 051cd12
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/branch-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,18 @@ jobs:
check-script:
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
with:
configuration_file_path: '.config/snap-flow.json'
configuration_file_path: '.config/snap-flow.json'

create-pull-request:
if: github.ref == 'refs/heads/testing_action'
steps:
- name: Check out
uses: actions/checkout@v2
- name: Create version.json update PR
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update main version
title: 'Update main version'
branch: merge/update-main-version
# awk '/"version":/{split($2,a,/[.]/);$1=" \"version\":";$2=a[1]"."a[2]+1"$3"};1' version.json
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.39",
"publicReleaseRefSpec": [
"^refs/heads/release$",
"^refs/heads/prerelease$",
"^refs/heads/prerelease$",
"^refs/heads/main$",
"^refs/heads/patch/.*$"
],
Expand Down

0 comments on commit 051cd12

Please sign in to comment.