Skip to content

Commit

Permalink
change branch name to main
Browse files Browse the repository at this point in the history
  • Loading branch information
SuryenduB committed Nov 4, 2023
1 parent 8b4499e commit c115112
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: 'Terraform Plan/Apply'
on:
push:
branches:
- master
- main


pull_request:
branches:
- master
- main

#Special permissions required for OIDC authentication
permissions:
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
#If this is a PR post the changes

- name: Push Terraform Output to PR
if: github.ref != 'refs/heads/master'
if: github.ref != 'refs/heads/main'
uses: actions/github-script@v6
env:
SUMMARY: "${{ steps.tf-plan-string.outputs.summary }}"
Expand All @@ -140,7 +140,7 @@ jobs:
ARM_SKIP_PROVIDER_REGISTRATION: true
ARM_ACCESS_KEY: ${{ secrets.ARM_ACCESS_KEY }}

if: github.ref == 'refs/heads/master' && needs.terraform-plan.outputs.tfplanExitCode == 2
if: github.ref == 'refs/heads/main' && needs.terraform-plan.outputs.tfplanExitCode == 2
runs-on: ubuntu-latest
needs: [terraform-plan]

Expand Down

0 comments on commit c115112

Please sign in to comment.