From ef85711b0521b4325007c27e115fae1116237899 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Tue, 10 Oct 2023 11:10:59 -0700 Subject: [PATCH] simplify go-license script --- .github/workflows/go-licenses.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go-licenses.yml b/.github/workflows/go-licenses.yml index 26d3fb2..aaafb49 100644 --- a/.github/workflows/go-licenses.yml +++ b/.github/workflows/go-licenses.yml @@ -29,11 +29,6 @@ jobs: git config --global user.name "${{ vars.CI_COMMIT_AUTHOR }}" git config --global user.email "${{ vars.CI_COMMIT_EMAIL }}" git add dependencies - git diff --quiet --exit-code --cached dependencies - if [ $? -eq 1 ] - then - git commit -m "ci(licenses): updated licenses" - git push - else - exit 0 - fi + git diff --quiet --exit-code --cached dependencies || exit 0 + git commit -m "ci(licenses): updated licenses" + git push