From c0753d18697e14ded72b6076206c88f586180b8a Mon Sep 17 00:00:00 2001 From: csviri Date: Wed, 6 Apr 2022 14:42:40 +0200 Subject: [PATCH] ci: prepare ci for v3 release --- .github/workflows/pr.yml | 2 +- .github/workflows/release.yml | 15 +++++++++++++++ .github/workflows/snapshot-releases.yml | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 306dc23ceb..7389a6b26c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,7 +8,7 @@ concurrency: cancel-in-progress: true on: pull_request: - branches: [ main, v1, next ] + branches: [ main, v1, v2, next ] workflow_dispatch: jobs: check_format_and_unit_tests: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99e7992f50..a13bb4ed87 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,10 @@ jobs: ref: "v1" - uses: actions/checkout@v3 if: ${{ startsWith(github.event.release.tag_name, 'v2.') }} + with: + ref: "v2" + - uses: actions/checkout@v3 + if: ${{ startsWith(github.event.release.tag_name, 'v3.') }} - name: Set up Java and Maven uses: actions/setup-java@v2 with: @@ -59,6 +63,10 @@ jobs: ref: "v1" - uses: actions/checkout@v3 if: ${{ startsWith(github.event.release.tag_name, 'v2.') }} + with: + ref: "v2" + - uses: actions/checkout@v3 + if: ${{ startsWith(github.event.release.tag_name, 'v3.') }} - name: Set up Java and Maven uses: actions/setup-java@v2 with: @@ -85,3 +93,10 @@ jobs: if: ${{ startsWith(github.event.release.tag_name, 'v2.' ) }} with: github_token: ${{ secrets.GITHUB_TOKEN }} + branch: "v2" + - name: Push changes v3 + uses: ad-m/github-push-action@master + if: ${{ startsWith(github.event.release.tag_name, 'v3.' ) }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/snapshot-releases.yml b/.github/workflows/snapshot-releases.yml index 67c13b3bfc..d1295f5754 100644 --- a/.github/workflows/snapshot-releases.yml +++ b/.github/workflows/snapshot-releases.yml @@ -8,7 +8,7 @@ concurrency: cancel-in-progress: true on: push: - branches: [ main, v1, next ] + branches: [ main, v1, v2, next ] workflow_dispatch: jobs: test: