From 0e9938cc6fc5912cc0e3a30bfa213cbf477f6365 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Fri, 7 Nov 2025 16:52:16 -0300 Subject: [PATCH 1/2] chore: minor fixes to ci --- .github/workflows/terraform.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 49d5153..58bae14 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -4,9 +4,6 @@ on: push: branches: [ "main" ] -permissions: - contents: read - jobs: terraform: name: 'Terraform' @@ -14,10 +11,8 @@ jobs: env: TF_WORKSPACE: 'prod' - # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest - defaults: - run: - shell: bash + permissions: + contents: read steps: # Checkout the repository to the GitHub Actions runner From ece6fd6cc8e5fad84b46c444de051850e7d92b4b Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Fri, 7 Nov 2025 18:46:55 -0300 Subject: [PATCH 2/2] feat: adds event dispatch --- .github/workflows/terraform.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 58bae14..96fd7cb 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -37,4 +37,12 @@ jobs: # Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks - name: Terraform Apply if: github.event_name == 'push' - run: terraform apply -auto-approve -input=false \ No newline at end of file + run: terraform apply -auto-approve -input=false + + - name: Trigger Cluster Deployment + if: github.event_name == 'push' + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.ACTIONS_KEY }} + repository: HideyoshiSolutions/infra-hideyoshi.com + event-type: deploy \ No newline at end of file