From f1c297937f81cfabf9ce7affdad9743bfeef7ebb Mon Sep 17 00:00:00 2001 From: dfeldick Date: Wed, 12 Jun 2024 12:53:02 -0700 Subject: [PATCH] APIGOV-28116 - fix update go.mod --- .github/workflows/update-gomod-for-tests.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-gomod-for-tests.yml b/.github/workflows/update-gomod-for-tests.yml index 5b3fcc9..194c089 100644 --- a/.github/workflows/update-gomod-for-tests.yml +++ b/.github/workflows/update-gomod-for-tests.yml @@ -29,18 +29,13 @@ jobs: git status | grep modified if [ $? -eq 0 ] then - set -e - echo -e "Committing dependency changes" - git config --global user.email builder-lphxmjtnt11@axway.com - git config --global user.name builder-lphxmjtnt11 - git commit --allow-empty -m "Updating SDK in go.mod" - git push origin ${BRANCH_REF} + echo -e "Dependency changes have occurred" echo "gomodChanged=y" >> $GITHUB_OUTPUT else - set -e echo -e "No dependency changes since last run" echo "gomodChanged=n" >> $GITHUB_OUTPUT fi + set -e - name: Create Pull Request if: ${{ steps.updatesdk.outputs.gomodChanged == 'y' }}