Skip to content

Commit

Permalink
so this is temporary. I messed up on previous release, so we now need…
Browse files Browse the repository at this point in the history
… to create the same RC as before. We will revert these changes once 6.3.0 is out
  • Loading branch information
cesar roman committed Jan 31, 2024
1 parent 83e2a14 commit 2e618f8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Checkout SDK
uses: actions/checkout@v3
with:
ref: master
ref: e9fbe5bd4a8aeb0a618487b3494e3f7f1f399a4d
token: ${{ secrets.CD_GITHUB_TOKEN }}

- uses: actions/cache@v3
Expand Down
30 changes: 16 additions & 14 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@ jobs:
run: |
curl -X POST ${{ vars.SDK_VERSION_URL }}/android/version/ -H 'X-Embrace-CI: ${{ secrets.SDK_VERSION_TOKEN }}' -H 'Content-Type: application/json' -d '{"version": "${{ github.event.inputs.current_version }}"}'
- name: Set next SDK version to remote
run: |
git checkout master
sed -i -r "s#version = ([^\']+)#version = ${{ github.event.inputs.next_version }}-SNAPSHOT#" gradle.properties
git add gradle.properties
git commit -m "CI/CD: set next version: ${{ github.event.inputs.next_version }}"
git push
# Not needed for now. but we will keep it.
# - name: Set next SDK version to remote
# run: |
# git checkout master
# sed -i -r "s#version = ([^\']+)#version = ${{ github.event.inputs.next_version }}-SNAPSHOT#" gradle.properties
# git add gradle.properties
# git commit -m "CI/CD: set next version: ${{ github.event.inputs.next_version }}"
# git push

- name: Checkout Swazzler
uses: actions/checkout@v3
Expand All @@ -86,13 +87,14 @@ jobs:
run: |
./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository -Dorg.gradle.parallel=false --stacktrace
- name: Set next Swazzler version
run: |
git checkout master
sed -i -r "s#version= ([^\']+)#version = ${{ github.event.inputs.next_version }}-SNAPSHOT#" gradle.properties
git add gradle.properties
git commit -m "CI/CD: set next version: ${{ github.event.inputs.next_version }}"
git push
# Not needed for now. but we will keep it.
# - name: Set next Swazzler version
# run: |
# git checkout master
# sed -i -r "s#version= ([^\']+)#version = ${{ github.event.inputs.next_version }}-SNAPSHOT#" gradle.properties
# git add gradle.properties
# git commit -m "CI/CD: set next version: ${{ github.event.inputs.next_version }}"
# git push

- name: Cleanup Gradle Cache
# Based on https://docs.github.com/en/actions/guides/building-and-testing-java-with-gradle#caching-dependencies
Expand Down

0 comments on commit 2e618f8

Please sign in to comment.