From 0408f6a515a7f11de46f1b11373ab30e9d315569 Mon Sep 17 00:00:00 2001 From: Moritz Althaus Date: Wed, 23 Oct 2024 15:51:30 +0200 Subject: [PATCH] ci: fix nested steps --- .github/workflows/release-please.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index c7a024b..5a60247 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -15,9 +15,9 @@ jobs: steps: - uses: googleapis/release-please-action@v4 - if: ${{ steps.release.outputs.release_created }} - steps: - - uses: actions/checkout@v4 - - name: Publish to cargo - env: - CARGO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} - run: cargo publish --token "${CARGO_TOKEN}" + uses: actions/checkout@v4 + - if: ${{ steps.release.outputs.release_created }} + name: Publish to cargo + env: + CARGO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + run: cargo publish --token "${CARGO_TOKEN}"