From 6e7036ff5247f4b899aaa0335445a7d984675434 Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Sun, 11 Feb 2024 13:50:54 +0400 Subject: [PATCH] CI: fix post publish workflow --- .github/workflows/publish.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f57a1ed0..20c72fee 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -72,8 +72,13 @@ jobs: LIST="${{ join(fromJSON(steps.publisher.outputs.published).*.name, ', ') }}" echo "Published $CRATES_NUM crates: $LIST" - - name: Post - if: join(fromJSON(steps.publisher.outputs.published).*.name, '-') && (github.event.inputs.dry-run == 'true' || (github.head_ref && 'true') || 'false') == 'false' - uses: ./.github/workflows/post.yml - with: - message: Crate${{ steps.counter.outputs.value == 1 && '' || 's' }} ${{ join(fromJSON(steps.publisher.outputs.published).*.name, ', ') }} updated. + outputs: + published: ${{ steps.publisher.outputs.published }} + counter: ${{ steps.counter.outputs.value }} + + post: + needs: crates-io + if: join(fromJSON(needs.crates-io.outputs.published).*.name, '-') && (github.event.inputs.dry-run == 'true' || (github.head_ref && 'true') || 'false') == 'false' + uses: ./.github/workflows/post.yml + with: + message: Crate${{ needs.crates-io.outputs.counter == 1 && '' || 's' }} ${{ join(fromJSON(needs.crates-io.outputs.published).*.name, ', ') }} updated.