Skip to content

Commit

Permalink
commit terraform changes after they are applied
Browse files Browse the repository at this point in the history
  • Loading branch information
priyank96 committed Dec 12, 2023
1 parent 38d9e45 commit 3afcc0e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/daily_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ jobs:
DB_IDENTIFIER: "terraform-blog-example"
OT_API_KEY: ${{ secrets.OT_API_KEY }}

- name: Commit changes
run: |
git status
git config user.email "[email protected]"
git config user.name "Your Name"
git add db_params.tf
git commit -m "AI knob updates"
git push
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} # GitHub access token

- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
Expand All @@ -57,3 +46,14 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Commit changes
run: |
git status
git config user.email "[email protected]"
git config user.name "priyank96"
git add db_params.tf
git commit -m "AI knob updates"
git push
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} # GitHub access token

0 comments on commit 3afcc0e

Please sign in to comment.