Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 1 | name: "Tweet trigger release" |
| 2 | on: |
| 3 | release: |
| 4 | types: [published] |
| 5 | |
| 6 | jobs: |
| 7 | tweet: |
| 8 | runs-on: ubuntu-latest |
| 9 | steps: |
| 10 | - name: "Get Release Tag" |
| 11 | run: | |
| 12 | RELEASE_TAG=$(curl https://api.github.com/repos/mailcow/mailcow-dockerized/releases/latest | jq -r '.tag_name') |
| 13 | - name: Tweet-trigger-publish-release |
| 14 | uses: mugi111/tweet-trigger-release@v1.1 |
| 15 | with: |
| 16 | consumer_key: ${{ secrets.CONSUMER_KEY }} |
| 17 | consumer_secret: ${{ secrets.CONSUMER_SECRET }} |
| 18 | access_token_key: ${{ secrets.ACCESS_TOKEN_KEY }} |
| 19 | access_token_secret: ${{ secrets.ACCESS_TOKEN_SECRET }} |
| 20 | tweet_body: 'A new mailcow update has just been released! Checkout the GitHub Page for changelog and more informations: https://github.com/mailcow/mailcow-dockerized/releases/latest' |