Skip to content

Commit

Permalink
Update grafana_provision.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ElianTemesDev committed May 3, 2024
1 parent 8c501c9 commit 3b7d31c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/grafana_provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:

# Post the preview (terraform plan) from the previous step as a GitHub pull request comment
- name: Post Plan to GitHub PR
uses: mshick/add-pr-comment@v1
if: github.ref != 'refs/heads/main'
uses: mshick/add-pr-comment@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: 'github-actions[bot]'
Expand All @@ -47,10 +47,10 @@ jobs:
${{ steps.plan.outputs.stdout }}
```
#Apply the Terraform plan
- name: Apply Terraform
if: github.ref == 'refs/heads/main'
id: apply
continue-on-error: true
run: |
terraform apply -auto-approve
continue-on-error: false
run: terraform apply -auto-approve

0 comments on commit 3b7d31c

Please sign in to comment.