diff --git a/.github/workflows/update-gomod-for-tests.yml b/.github/workflows/update-gomod-for-tests.yml index 194c089..99a48fb 100644 --- a/.github/workflows/update-gomod-for-tests.yml +++ b/.github/workflows/update-gomod-for-tests.yml @@ -29,8 +29,9 @@ jobs: git status | grep modified if [ $? -eq 0 ] then - echo -e "Dependency changes have occurred" - echo "gomodChanged=y" >> $GITHUB_OUTPUT + echo -e "Committing dependency changes" + git commit --allow-empty -m "Updating SDK in go.mod" + echo "gomodChanged=y" >> $GITHUB_OUTPUT else echo -e "No dependency changes since last run" echo "gomodChanged=n" >> $GITHUB_OUTPUT