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

[release-branches] Retrieve the output from outside the Docker context #2300

Merged
merged 2 commits into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,14 @@ jobs:
uses: ./smithy-rs/.github/actions/docker-build
with:
action: generate-new-changelog-next-toml
- name: Download all artifacts
uses: ./smithy-rs/.github/actions/download-all-artifacts
- name: Push smithy-rs changes
working-directory: generate-new-changelog-next-toml/smithy-rs
shell: bash
run: |
set -eux

# This will fail if other commits have been pushed to `main` after `commit_sha`
# In particular, this will ALWAYS fail if you are creating a new release series from
# a commit that is not the current tip of `main`.
Expand Down
10 changes: 9 additions & 1 deletion tools/ci-scripts/generate-new-changelog-next-toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@

set -eux

changelogger init > smithy-rs/CHANGELOG.next.toml
SMITHY_RS_DIR="$(pwd)/smithy-rs"
ARTIFACTS_DIR="$(pwd)/artifacts/generate-new-changelog-next-toml"

changelogger init > "${SMITHY_RS_DIR}/CHANGELOG.next.toml"

pushd "${ARTIFACTS_DIR}"
cp -r "${SMITHY_RS_DIR}" .
git -C smithy-rs status
popd