From 5a0f234b15d1fbff81d975900380a3152e78cf3c Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Date: Mon, 25 Mar 2024 18:03:39 -0300 Subject: [PATCH] fix: update GITHUB_TOKEN in homebrew pipeline (#1219) --- .github/workflows/publish-stable-aws.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-stable-aws.yml b/.github/workflows/publish-stable-aws.yml index 652788b0a..24406719f 100644 --- a/.github/workflows/publish-stable-aws.yml +++ b/.github/workflows/publish-stable-aws.yml @@ -21,7 +21,7 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - role-to-assume: ${{secrets.AWS_ROLE_NAME }} + role-to-assume: ${{ secrets.AWS_ROLE_NAME }} role-session-name: github-actions-from-toolbelt aws-region: us-east-1 - name: Deploy on AWS @@ -38,14 +38,14 @@ jobs: - name: Get deploy version id: deployed-version run: echo '::set-output name=SOURCE_TAG::$(curl https://api.github.com/repos/vtex/toolbelt/releases/latest -s | jq .tag_name -r)' - - name: Trigger slack notification bot [Success] - run: 'curl --connect-timeout 30 --retry 3 --retry-delay 120 --data "status=success&user=${{ github.actor }}&platform=AWS-S3&version=${{ steps.deployed-version.outputs.SOURCE_TAG }}" --header "token: ${{ secrets.TOOLBELT_NOTIFICATION_KEY }}" https://master--vtex.myvtex.com/_v/public/toolbelt-notification/status' - name: Trigger publish-stable-brew uses: peter-evans/repository-dispatch@v1 with: - token: ${{ secrets.REPO_GHA_PAT }} + token: ${{ secrets.GITHUB_TOKEN }} repository: vtex/homebrew-vtex event-type: publish-stable-brew + - name: Trigger slack notification bot [Success] + run: 'curl --connect-timeout 30 --retry 3 --retry-delay 120 --data "status=success&user=${{ github.actor }}&platform=AWS-S3&version=${{ steps.deployed-version.outputs.SOURCE_TAG }}" --header "token: ${{ secrets.TOOLBELT_NOTIFICATION_KEY }}" https://master--vtex.myvtex.com/_v/public/toolbelt-notification/status' publish-failed: runs-on: ubuntu-latest needs: [aws-publish]