Skip to content

Add repo for mood bot #583

Add repo for mood bot

Add repo for mood bot #583

Workflow file for this run

name: Main
on:
push:
branches: [ main ]
pull_request: { }
jobs:
required-meta:
uses: BlindfoldedSurgery/actions-meta/.github/workflows/required.yml@v1
fmt:
strategy:
matrix:
directory: [ ".", "modules/pubsub_channel" ]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- run: terraform fmt -check
working-directory: ${{ matrix.directory }}
validate:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- run: terraform init -backend=false
- run: terraform validate
env:
GITHUB_APP_PEM_FILE: ${{ secrets.GH_APP_PEM_FILE }}
plan:
runs-on: ubuntu-24.04
needs:
- fmt
- validate
- required-meta
concurrency: production
if: github.event_name == 'pull_request'
env:
DOPPLER_TOKEN: ${{ secrets.TERRAFORM_DOPPLER_TOKEN }}
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_SA_JSON }}
GITHUB_APP_PEM_FILE: ${{ secrets.GH_APP_PEM_FILE }}
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- run: terraform init
- run: terraform plan
apply:
runs-on: ubuntu-24.04
needs:
- fmt
- validate
- required-meta
concurrency: production
if: github.ref_name == github.event.repository.default_branch
env:
DOPPLER_TOKEN: ${{ secrets.TERRAFORM_DOPPLER_TOKEN }}
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_SA_JSON }}
GITHUB_APP_PEM_FILE: ${{ secrets.GH_APP_PEM_FILE }}
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- run: terraform init
- run: terraform apply -auto-approve