From 051cd120ef824000a2bf3c13d67d557653a0e944 Mon Sep 17 00:00:00 2001 From: David Barbet Date: Fri, 12 Jul 2024 17:38:54 -0700 Subject: [PATCH] auto increment main version on snap --- .github/workflows/branch-snap.yml | 16 +++++++++++++++- version.json | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/branch-snap.yml b/.github/workflows/branch-snap.yml index 7be82e8cd..535f2a641 100644 --- a/.github/workflows/branch-snap.yml +++ b/.github/workflows/branch-snap.yml @@ -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' \ No newline at end of file + 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 \ No newline at end of file diff --git a/version.json b/version.json index 1179ebb3c..532d746de 100644 --- a/version.json +++ b/version.json @@ -3,7 +3,7 @@ "version": "2.39", "publicReleaseRefSpec": [ "^refs/heads/release$", - "^refs/heads/prerelease$", + "^refs/heads/prerelease$", "^refs/heads/main$", "^refs/heads/patch/.*$" ],