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

feature: Enable rollback infrastructure #11332

Merged
merged 9 commits into from
May 4, 2023
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
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1592,18 +1592,25 @@ jobs:
- amplify-ssh-deps-{{ .Branch }}
- amplify-ssh-deps
- run:
name: 'Update API documentation'
name: 'Update roll-back infrastructure'
command: |
git config --global user.email $GITHUB_EMAIL
git config --global user.name $GITHUB_USER
git pull origin release
PUBLISH_COMMIT_HASH=$(git log -n 1 --pretty=format:"%H")
RELEASE_COMMIT_MESSAGE=$(git log -n 1 --skip 1 --pretty=oneline)
if [[ $RELEASE_COMMIT_MESSAGE = *release\(required\)* ]]; then git tag -f required-release $PUBLISH_COMMIT_HASH; fi
- run:
name: 'Update API documentation'
command: |
yarn run docs
git add ./docs/api/
git commit -m "chore(release): update API docs [ci skip]"
- run:
name: 'Push post release changes'
command: |
git push origin release
git push -f origin required-release
git push --force-with-lease origin release:main

# Specifies the branches that can be considered releasable.
Expand Down