Skip to content

Commit

Permalink
Fix naming in workflows (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenmartius authored Apr 25, 2024
2 parents 0a41d52 + 053088d commit e59e8c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:

### Run the Terraform deployment via Terramate in each changed stack

- name: Run Terraform init on all changed stacks
- name: Run Terraform init in all changed stacks
if: steps.list-changed.outputs.stdout
run: |
terramate script run \
Expand All @@ -73,7 +73,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Apply planned changes on changed stacks
- name: Run Terraform apply in all changed stacks
id: deploy
if: steps.list-changed.outputs.stdout
run: |
Expand All @@ -85,7 +85,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Run drift detection
- name: Run drift detection in all deployed stacks
if: steps.list-changed.outputs.stdout && ! cancelled() && steps.deploy.outcome != 'skipped'
run: |
terramate script run \
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/drift-detection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: Scheduled Terraform Drift Detection

on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '*/30 * * * *'
# Run this workflow at the top of every hour
- cron: '0 * * * *'

jobs:
drift-detection:
name: Check Drift
name: Detect and reconcile drift in Terraform stacks

permissions:
id-token: write
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:

### Run Dift Check

- name: Run Terraform init on all stacks
- name: Run Terraform init in all stacks
run: |
terramate script run \
-C stacks \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
preview:
name: Plan Terraform changes in changed Terramate stacks
name: Plan Terraform changes in changed stacks
runs-on: ubuntu-latest

permissions:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:

### Run the Terraform preview via Terramate in each changed stack

- name: Run Terraform init on all changed stacks
- name: Run Terraform init in all changed stacks
if: steps.list-changed.outputs.stdout
run: |
terramate script run \
Expand Down

0 comments on commit e59e8c3

Please sign in to comment.