Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new workflow to update snapshot in test apps #1008

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/rc-update-test-apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Pre-Release - Update Test Apps with new Snapshot

on:
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
workflow_call:
inputs:
next_version:
required: true
type: string

jobs:
update-apps:
name: Update Apps Repo
strategy:
matrix:
repo: [ embrace-io/android-sdk-benchmark, embrace-io/android-test-suite ]
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'
git config --global url."https://${{ secrets.CD_GITHUB_USER }}:${{ secrets.CD_GITHUB_TOKEN }}@github.com".insteadOf "https://github.com"

- name: Checkout App
uses: actions/checkout@v4
with:
repository: ${{ matrix.repo }}
ref: master
token: ${{ secrets.CD_GITHUB_TOKEN }}

- name: Set next SDK version
run: |
git checkout master
sed -i -r "s#swazzler_version = ([^\']+)#swazzler_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
Loading