-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/idclaim-sub-default
- Loading branch information
Showing
395 changed files
with
18,427 additions
and
2,184 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
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
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,20 @@ | ||
name: Publish Rollback Artifacts | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_rollback: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 #2.2.0 | ||
with: | ||
role-to-assume: ${{ secrets.AMPLIFY_ANDROID_RELEASE_PUBLISHER_ROLE }} | ||
aws-region: us-east-1 | ||
- name: Start Maven Release Build | ||
uses: aws-actions/aws-codebuild-run-build@d5a04846cedab61a0b7c897af0548af0d8fb14fb #1.0.12 | ||
with: | ||
project-name: AmplifyAndroid-ReleasePublisher-V2 |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
env: | ||
GIT_USER_NAME: amplify-android-dev+ghops | ||
GIT_USER_EMAIL: [email protected] | ||
BASE_BRANCH: ${{ github.event.ref }} | ||
BASE_BRANCH: ${{ github.ref_name }} | ||
jobs: | ||
create_pr_for_next_release: | ||
runs-on: ubuntu-latest | ||
|
@@ -19,7 +19,7 @@ jobs: | |
sudo add-apt-repository -y ppa:git-core/ppa | ||
sudo apt-get update | ||
sudo apt-get install git -y | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 | ||
with: | ||
ref: ${{ env.BASE_BRANCH }} | ||
fetch-depth: 0 | ||
|
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,65 @@ | ||
name: Rollback Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch_from: | ||
description: 'The known good version to re-release (e.g. 2.9.1)' | ||
required: true | ||
deprecated_version: | ||
description: 'The version you are rolling back (e.g. 2.9.2)' | ||
required: true | ||
new_version: | ||
description: 'The new version number (e.g. 2.9.3)' | ||
|
||
|
||
|
||
jobs: | ||
rollback-release: | ||
runs-on: ubuntu-latest | ||
env: | ||
AWS_REGION: "us-east-1" | ||
BRANCH_FROM: ${{ inputs.branch_from }} | ||
DEPRECATED_VERSION: ${{ inputs.deprecated_version }} | ||
NEW_VERSION: ${{ inputs.new_version }} | ||
CI_COMMIT_MESSAGE: Re-release v${{ inputs.branch_from }} as v${{ inputs.new_version }} | ||
ROLLBACK_BRANCH: rollback_${{ inputs.deprecated_version }} | ||
NEW_TAG: release_v${{ inputs.new_version }} | ||
permissions: | ||
id-token: write | ||
contents: write | ||
actions: write | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
with: | ||
ref: ${{ format('release_v{0}', env.BRANCH_FROM) }} | ||
token: ${{ secrets.GH_WORKFLOW_TOKEN }} | ||
- name: Create Rollback Branch | ||
run: git checkout -b ${{ env.ROLLBACK_BRANCH }} | ||
- name: Update Version | ||
run: | | ||
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
git config --global user.name github-actions[bot] | ||
sed -i 's/POM_VERSION=${{ env.BRANCH_FROM }}/POM_VERSION=${{ env.NEW_VERSION }}/g' gradle.properties | ||
echo -e '## [Release ${{ env.NEW_VERSION }}](https://github.com/${{ github.repository }}/releases/tag/${{ env.NEW_TAG }})\n\nThis is a re-release of version ${{ env.BRANCH_FROM }}. Use this instead of version ${{ env.DEPRECATED_VERSION }}.\n' | cat - CHANGELOG.md > temp && mv temp CHANGELOG.md | ||
git add gradle.properties | ||
git add CHANGELOG.md | ||
git commit -m "${{ env.CI_COMMIT_MESSAGE }}" | ||
- name: Tag Version | ||
run: git tag "${{ env.NEW_TAG }}" | ||
- name: Push Changes | ||
run: git push --atomic origin ${{ env.ROLLBACK_BRANCH }} ${{ env.NEW_TAG }} | ||
- name: Run Publish | ||
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 | ||
with: | ||
# The aws-codebuild-run-build action automatically passes the source version that the workflow | ||
# is run on to Codebuild, and there is no override option. In order to run the Codebuild | ||
# release with our newly-created tag version we dispatch another workflow on that tag. | ||
script: | | ||
github.rest.actions.createWorkflowDispatch({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
workflow_id: 'rollback_publish.yml', | ||
ref: "${{ env.NEW_TAG }}", | ||
}) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.