From d17c08e89ca24eebd1206b83cd345ec96e104251 Mon Sep 17 00:00:00 2001 From: Lucas Romano Date: Fri, 29 Nov 2024 13:03:09 -0300 Subject: [PATCH] fix Twiteet step on release workflow --- .github/workflows/release.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 101f5772..fea8df8c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,30 +1,30 @@ name: Release on: [workflow_dispatch] - + jobs: release_version: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - + - name: Publish release id: publish_release uses: release-drafter/release-drafter@v5 - with: + with: publish: true env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Update podspec + - name: Update podspec run: fastlane bump_version next_version:${{ steps.publish_release.outputs.tag_name }} - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: - branch: 'main' - commit_message: 'Bump version ${{ steps.publish_release.outputs.tag_name }}' + branch: "main" + commit_message: "Bump version ${{ steps.publish_release.outputs.tag_name }}" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Deploy to Cocoapods env: @@ -32,16 +32,16 @@ jobs: run: | set -eo pipefail pod lib lint --allow-warnings - pod trunk push --allow-warnings - + pod trunk push --allow-warnings + - name: Tweet the release - uses: ethomson/send-tweet-action@v1 + uses: nearform-actions/github-action-notify-twitter@master with: - consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} - consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} - access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} - access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} - status: | + message: | 🎉 New release ${{ steps.publish_release.outputs.tag_name }} is out 🚀 Check out all the changes here: - ${{ steps.publish_release.outputs.html_url }} + ${{ steps.publish_release.outputs.html_url }} + twitter-app-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }} + twitter-app-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }} + twitter-access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} + twitter-access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}