From 7e61fae98b6b7637fde259d9af750afa3ec1f4d1 Mon Sep 17 00:00:00 2001 From: Maksymilian Mozolewski Date: Mon, 2 Dec 2024 20:38:19 +0000 Subject: [PATCH 1/2] Update release.yaml --- .github/workflows/release.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 39f2db5..3e32231 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,12 +1,13 @@ name: Release -on: workflow_dispatch - inputs: - dry-run: - description: 'Run cargo publish --dry-run' - required: true - type: boolean - default: true +on: + workflow_dispatch: + inputs: + dry-run: + description: 'Run cargo publish --dry-run' + required: true + type: boolean + default: true jobs: publish: @@ -45,4 +46,4 @@ jobs: - name: Run cargo publish --dry-run if : ${{ inputs.dry-run == 'true' }} - run: cargo publish --dry-run \ No newline at end of file + run: cargo publish --dry-run From c8a1eed475fefd705f068fff12bb00e37e8e2940 Mon Sep 17 00:00:00 2001 From: Maksymilian Mozolewski Date: Mon, 2 Dec 2024 20:46:00 +0000 Subject: [PATCH 2/2] Update release.yaml --- .github/workflows/release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3e32231..d7e1cab 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,11 +39,11 @@ jobs: ${{ runner.os }}-cargo-index- - name: Run cargo publish - if : ${{ inputs.dry-run == 'false' }} + if : ${{ !fromJSON(inputs.dry-run) }} env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: cargo publish - + - name: Run cargo publish --dry-run - if : ${{ inputs.dry-run == 'true' }} + if : ${{ fromJSON(inputs.dry-run) }} run: cargo publish --dry-run