Skip to content

Commit

Permalink
CI: fix post publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Feb 11, 2024
1 parent 897b952 commit 6e7036f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 6e7036f

Please sign in to comment.