Skip to content

Commit

Permalink
simplify go-license script
Browse files Browse the repository at this point in the history
  • Loading branch information
taigrr committed Oct 10, 2023
1 parent 2e14477 commit ef85711
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/go-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ef85711

Please sign in to comment.