Skip to content

Commit

Permalink
Merge pull request #204 from liam-hq/dont-commit-only-timestamp-update
Browse files Browse the repository at this point in the history
Stop git commit only timestamp update in license report
  • Loading branch information
MH4GF authored Dec 11, 2024
2 parents 73bdeb3 + 9defdac commit e68bdfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/license-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
run: |
mkdir -p "$(dirname "$LICENSE_REPORT")"
license_finder report --format=markdown | tail -n +2 > "$LICENSE_REPORT"
# Delete the timestamp line because there will be a difference even if there is no change in licenses
sed -e '/^As of /d' -i "$LICENSE_REPORT"
working-directory: ${{ env.working-directory }}
- name: Commit license report and push
if: |
Expand All @@ -101,6 +103,10 @@ jobs:
&& github.ref_name != github.event.repository.default_branch
&& github.event_name != 'merge_group'
run: |
if git diff --quiet; then
echo 'No changes to commit'
exit 0
fi
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add "$LICENSE_REPORT"
Expand Down
3 changes: 2 additions & 1 deletion frontend/docs/packages-license.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frontend

As of December 9, 2024 12:25pm. 1020 total

## Summary
* 888 MIT
Expand Down Expand Up @@ -11268,3 +11267,5 @@ Unknown manually approved
* /home/runner/work/liam/liam/frontend

<a href="http://opensource.org/licenses/mit-license">MIT</a> permitted


0 comments on commit e68bdfb

Please sign in to comment.