From e9e1ca5e0883d23d82aa1da3c3f1ba57f3515a29 Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Sun, 11 Feb 2024 17:14:54 +0400 Subject: [PATCH] CI: fix post publish workflow --- .github/workflows/post.yml | 2 +- .github/workflows/publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/post.yml b/.github/workflows/post.yml index 98958cfa..3572fd30 100644 --- a/.github/workflows/post.yml +++ b/.github/workflows/post.yml @@ -42,6 +42,6 @@ jobs: # TODO: Write good-look link like [github.event.repository.name](url) language: "en" - visibility: "public" # use `unlisted` for tests + visibility: public # use `unlisted` for tests url: ${{ secrets.MASTODON_URL }} access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 20c72fee..1af413b8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -81,4 +81,4 @@ jobs: 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. + message: "Crate${{ needs.crates-io.outputs.counter > 1 && 's' || '' }} updated: ${{ join(fromJSON(needs.crates-io.outputs.published).*.name, ', ') }}."