Skip to content

Commit

Permalink
fix(ci): updated to check if changes occured for licenses (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanholz authored Oct 6, 2023
1 parent 59901dd commit d4721fc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/go-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,11 @@ jobs:
git config --global user.name "${{ vars.CI_COMMIT_AUTHOR }}"
git config --global user.email "${{ vars.CI_COMMIT_EMAIL }}"
git add dependencies
git commit -m "ci(licenses): updated licenses"
git push
git diff --quiet --exit-code --cached dependencies
if [ $? -eq 1 ]
then
git commit -m "ci(licenses): updated licenses"
git push
else
exit 0
end

0 comments on commit d4721fc

Please sign in to comment.