-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cut branches for both sdk and swazzler before updating master (#1240)
## Goal Changing the order so the master properties file updates don't make the swazzler branch cutting fail
- Loading branch information
1 parent
f588c46
commit 1e7f96d
Showing
3 changed files
with
62 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Pre-Release - Update Main Versions | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
next_version: | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
next_version: | ||
description: 'Next version. Specify <major.minor>, e.g. 6.4 (Do NOT include -SNAPSHOT, will be added automatically)' | ||
required: true | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
update-main-versions: | ||
name: Update Main Versions | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Configure git | ||
run: | | ||
git config --global user.name 'embrace-ci[bot]' | ||
git config --global user.email 'embrace-ci@users.noreply.github.com' | ||
- name: Checkout SDK | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
|
||
- name: Set next SDK version | ||
run: | | ||
git checkout master | ||
sed -i -r "s#version = ([^\']+)#version = ${{ github.event.inputs.next_version }}.0-SNAPSHOT#" gradle.properties | ||
git add gradle.properties | ||
git commit -m "CI/CD: set next version: ${{ github.event.inputs.next_version }}.0-SNAPSHOT" | ||
git push | ||
- name: Checkout Swazzler | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: embrace-io/embrace-swazzler3 | ||
ref: master | ||
token: ${{ secrets.GH_EMBRACE_SWAZZLER3_TOKEN }} | ||
|
||
- name: Set Next Swazzler Version | ||
run: | | ||
git checkout master | ||
sed -i -r "s#version = ([^\']+)#version = ${{ github.event.inputs.next_version }}.0-SNAPSHOT#" gradle.properties | ||
git add gradle.properties | ||
git commit -m "CI/CD: set next version: ${{ github.event.inputs.next_version }}.0-SNAPSHOT" | ||
git push |