From 1837c8111e5d5bb609824a5981716cbfc28a05cd Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Wed, 11 Mar 2020 16:19:51 +0100 Subject: [PATCH] github: Post to fediverse only on release Origin: https://github.com/abandonware/node-i2c Change-Id: Icf3b717c926f55d7ee69f4056973c36ab17a520e Signed-off-by: Philippe Coval --- .github/workflows/fediverse-action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fediverse-action.yml b/.github/workflows/fediverse-action.yml index 20da36d..dcfbb48 100644 --- a/.github/workflows/fediverse-action.yml +++ b/.github/workflows/fediverse-action.yml @@ -6,6 +6,10 @@ jobs: post: runs-on: ubuntu-latest steps: - - uses: rzr/fediverse-action@master + - uses: actions/checkout@v1 + - id: log + run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)" + - if: "contains(steps.log.outputs.message, 'Release ')" + uses: rzr/fediverse-action@master with: access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}