Skip to content

Commit f8ccce5

Browse files
committed
ci: update workflows
1 parent a3a3a11 commit f8ccce5

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

.github/workflows/bump-snapshot-version.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
workflow_dispatch:
1010
inputs:
1111
next_version:
12-
description: 'Next version. Specify <major.minor>, e.g. 6.4 (Do NOT include -SNAPSHOT, this will be added automatically)'
12+
description: 'Next version. Specify <major.minor.patch>, e.g. 7.2.0 (Do NOT include -SNAPSHOT, this will be added automatically)'
1313
required: true
1414

1515
permissions:
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/checkout@v4
2828

2929
- name: Set next version
30-
run: sed -i -r "s#version=([^\']+)#version=${{ inputs.next_version }}.0-SNAPSHOT#" gradle.properties
30+
run: sed -i -r "s#version=([^\']+)#version=${{ inputs.next_version }}-SNAPSHOT#" gradle.properties
3131

3232
- name: Create PR
3333
env:
@@ -40,10 +40,10 @@ jobs:
4040
git checkout -b $branch
4141
4242
git add gradle.properties
43-
git commit -m "CI/CD: set next version: ${{ inputs.next_version }}.0-SNAPSHOT"
43+
git commit -m "CI/CD: set next version: ${{ inputs.next_version }}-SNAPSHOT"
4444
git push -f origin $branch
4545
gh pr create \
4646
--base main \
4747
--head $branch \
48-
--title "CI/CD: set next version: ${{ inputs.next_version }}.0-SNAPSHOT" \
48+
--title "CI/CD: set next version: ${{ inputs.next_version }}-SNAPSHOT" \
4949
--body "This is an autogenerated PR, created by the bump-snapshot-version.yml workflow"

.github/workflows/create-release-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Set version in gradle.properties
3737
run: |
38-
sed -i -r "s#version = ([^\']+)#version=${{ inputs.rc_version }}#" gradle.properties
38+
sed -i -r "s#version=([^\']+)#version=${{ inputs.rc_version }}#" gradle.properties
3939
git add gradle.properties
4040
git commit -m "CI/CD: change version to be released: ${{ inputs.rc_version }}"
4141
git push --set-upstream origin release/${{ inputs.rc_version }}

.github/workflows/publish-api-docs.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,3 @@ jobs:
5757
git config --global user.email "embrace-ci@users.noreply.github.com"
5858
git commit --allow-empty --message 'CI/CD: Automatically generated documentation for ${{ inputs.rc_version }}' docs/
5959
git push --force origin gh-pages
60-
61-
- name: Record Version History (${{ inputs.rc_version }})
62-
run: |
63-
curl -X POST ${{ vars.SDK_VERSION_URL }}/android/version/ -H 'X-Embrace-CI: ${{ secrets.SDK_VERSION_TOKEN }}' -H 'Content-Type: application/json' -d '{"version": "${{ inputs.rc_version }}"}'

0 commit comments

Comments
 (0)