Skip to content

Commit

Permalink
Now using working-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
TBeijen committed Jul 24, 2024
1 parent e28ff7e commit 4221b88
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ jobs:
path: tbnl-www-gitops

- name: GitOps update
working-directory: ./tbnl-www-gitops
run: |
git -C tbnl-www-gitops config user.name "TBNL bot"
git -C tbnl-www-gitops config user.email "[email protected]"
git config user.name "TBNL bot"
git config user.email "[email protected]"
new_sha_tag="${{ steps.extract_sha_tag.outputs.sha_tag}}"
deployment_file="variants/www-test/version.yaml"
Expand All @@ -110,5 +111,5 @@ jobs:
echo "Modified deployment file contents:"
cat $deployment_file
git -C tbnl-www-gitops commit -am "Updated www test to ${{ steps.extract-sha-tag.outputs.sha_tag}}"
git -C tbnl-www-gitops push origin main
git commit -am "Updated www test to ${{ steps.extract-sha-tag.outputs.sha_tag}}"
git push origin main

0 comments on commit 4221b88

Please sign in to comment.