From 07dd868fa60a9c02b530100d4cd28ca690668048 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Fri, 14 Jun 2024 23:36:31 +1000 Subject: [PATCH] Fix release-dry-run (#1764) Dry run publish in merge_queue CI for release PR Signed-off-by: Jiahao XU --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a61dbaa..54f36d96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -190,7 +190,22 @@ jobs: - run: just avoid-dev-deps - run: just lint + pr-info: + outputs: + is-release: ${{ steps.meta.outputs.is-release }} + crate: ${{ steps.meta.outputs.crates-names }} + + runs-on: ubuntu-latest + steps: + - id: meta + if: github.event_name == 'pull_request' + uses: cargo-bins/release-meta@v1 + with: + event-data: ${{ toJSON(github.event) }} + extract-notes-under: "### Release notes" + release-dry-run: + needs: pr-info uses: ./.github/workflows/release-cli.yml if: github.event_name != 'pull_request' secrets: inherit