Skip to content

Commit

Permalink
Merge pull request #2 from Resourcely-Inc/drbild/only-run-resourcely-…
Browse files Browse the repository at this point in the history
…action-on-pull-requests

workflow: only run resourcely-action on pull requests
  • Loading branch information
drbild authored Dec 22, 2023
2 parents a89da4e + b67dc74 commit 372bc33
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 372bc33

Please sign in to comment.