From 7225ec4eb326a6f857b95983fd11e9c620a7cd46 Mon Sep 17 00:00:00 2001 From: reda Date: Wed, 20 Dec 2023 10:41:25 -0500 Subject: [PATCH] issue #4: no pull --- .github/workflows/workflow-lint-test-python.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow-lint-test-python.yml b/.github/workflows/workflow-lint-test-python.yml index b3e636d..88f02af 100644 --- a/.github/workflows/workflow-lint-test-python.yml +++ b/.github/workflows/workflow-lint-test-python.yml @@ -89,13 +89,12 @@ jobs: run: echo "${{ env.GIT_BRANCH_NAME }}" - name: Push new file + if: steps.compare_values.outputs.update_value == 'true' run: | git config --local user.email "actions@github.com" git config --local user.name "GitHub Actions" - git checkout -b ${{ env.GIT_BRANCH_NAME }} - git pull origin ${{ env.GIT_BRANCH_NAME }} || true git add .github/workflows/gcp-deployment.yml git commit -m "Update threshold" - git push origin ${{ env.GIT_BRANCH_NAME }} + git push env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}