-
Notifications
You must be signed in to change notification settings - Fork 432
chore(ci): update layer ARN docs and create PR during release #2240
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
Merged
leandrodamascena
merged 20 commits into
aws-powertools:develop
from
heitorlessa:chore/update-layer-arn-pr
May 12, 2023
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
defe5e7
chore: convert create-pr steps into composite action
heitorlessa b36dea7
chore(ci): changelog to use new create-pr action
heitorlessa 2ca2f0e
chore(ci): revert changelog to trigger on push
heitorlessa 3905a4c
chore: document custom action
heitorlessa 0d53e16
chore: add support for any target branch
heitorlessa e391610
chore: create a PR to bump version after release
heitorlessa 5347f64
chore: write permission is no longer necessary
heitorlessa 5e0dc37
chore: propagate permissions
heitorlessa e9eae01
chore: support pulling from a branch or sha
heitorlessa 589d30e
chore: remove docs publishing from layer deploy workflow
heitorlessa 6d069ab
chore: create PR with layer arn updates
heitorlessa 4550c93
chore: remove now redundant update_v2_layer_arn_docs workflow
heitorlessa 2a220f1
chore: remove changelog from release
heitorlessa 1a448ab
chore: update changelog to include new release version
heitorlessa 44eefa7
chore: update release process
heitorlessa cd9d6e6
Merge branch 'develop' into chore/update-layer-arn-pr
heitorlessa c994f71
chore: address leandro's feedback
heitorlessa cab279a
chore: address leandro's feedback
heitorlessa 1d2e94a
chore(ci): add skip-changelog label in PRs
heitorlessa 202fd6c
chore(ci): new job to create git tag as part of release
heitorlessa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -5,12 +5,14 @@ name: Release | |
# === Automated activities === | ||
# | ||
# 1. Run tests, linting, security and complexity base line | ||
# 2. Bump package version, build release artifact, and generate latest Changelog | ||
# 2. Bump package version and build release artifact | ||
# 3. Publish package to PyPi prod repository using cached artifact | ||
# 4. Kick off Layers pipeline to compile and publish latest version | ||
# 5. Updates documentation to use the latest Layer ARN for all commercial regions | ||
# 6. Builds a new user guide and API docs with release version; update /latest pointing to newly released version | ||
# 7. Close all issues labeled "pending-release" and notify customers about the release | ||
# 4. Compile Layer and kick off pipeline for beta, prod, and canary releases | ||
# 5. Update docs with latest Layer ARNs and Changelog | ||
# 6. Create PR to update trunk so staged docs also point to the latest Layer ARN, when merged | ||
# 7. Builds a new user guide and API docs with release version; update /latest pointing to newly released version | ||
# 8. Create PR to update package version on trunk | ||
# 9. Close all issues labeled "pending-release" and notify customers about the release | ||
# | ||
# === Manual activities === | ||
# | ||
|
@@ -126,15 +128,36 @@ jobs: | |
# with: | ||
# repository-url: https://test.pypi.org/legacy/ | ||
|
||
create_tag: | ||
needs: [build, release] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
env: | ||
RELEASE_VERSION: ${{ needs.build.outputs.RELEASE_VERSION }} | ||
steps: | ||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
- id: setup-git | ||
name: Git client setup and refresh tip | ||
run: | | ||
git config user.name "Powertools bot" | ||
git config user.email "[email protected]" | ||
git config remote.origin.url >&- | ||
- name: Create Git Tag | ||
run: | | ||
git tag -a v"${RELEASE_VERSION}" -m "release_version: v${RELEASE_VERSION}" | ||
git push origin v"${RELEASE_VERSION}" | ||
|
||
# NOTE: Watch out for the depth limit of 4 nested workflow_calls. | ||
# publish_layer -> publish_v2_layer -> reusable_deploy_v2_layer_stack -> reusable_update_v2_layer_arn_docs | ||
# publish_layer -> publish_v2_layer -> reusable_deploy_v2_layer_stack | ||
publish_layer: | ||
needs: [build, release] | ||
needs: [build, release, create_tag] | ||
secrets: inherit | ||
permissions: | ||
id-token: write | ||
contents: write | ||
pages: write | ||
pull-requests: write | ||
uses: ./.github/workflows/publish_v2_layer.yml | ||
with: | ||
latest_published_version: ${{ needs.build.outputs.RELEASE_VERSION }} | ||
|
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.