From 4221b88e1c5918e8aeabf14ef51058e48834f6cd Mon Sep 17 00:00:00 2001 From: Tibo Beijen Date: Wed, 24 Jul 2024 07:32:18 +0200 Subject: [PATCH] Now using working-directory --- .github/workflows/main.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5a9741a..f064fec 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 "tbnl@users.noreply.github.com" + git config user.name "TBNL bot" + git config user.email "tbnl@users.noreply.github.com" new_sha_tag="${{ steps.extract_sha_tag.outputs.sha_tag}}" deployment_file="variants/www-test/version.yaml" @@ -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