Skip to content

Commit

Permalink
workflow: only run resourcely-action on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
drbild committed Dec 22, 2023
1 parent a89da4e commit b67dc74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ jobs:
name: plan-file
path: plan.json

# - name: Terraform Apply
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
# run: terraform apply -auto-approve -input=false
- name: Terraform Apply
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: terraform apply -auto-approve -input=false

resourcely-ci:
needs: terraform
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit b67dc74

Please sign in to comment.