Skip to content

Commit

Permalink
generate-license-file: Move script to scripts folder
Browse files Browse the repository at this point in the history
This commit also adds if condition to check license file change.
It is to avoid empty commits.

Signed-off-by: Abner C. Paula <[email protected]>
  • Loading branch information
hellhound94 committed Dec 4, 2024
1 parent 2291cfa commit 3ee87ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/update-license-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ jobs:

- name: Run license generation script
run: |
chmod +x ./generate-license-file.sh
./generate-license-file.sh
./scripts/generate-license-file
- name: Commit and push LICENSE file
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add LICENSE
git commit -m "Auto-update LICENSE file with current recipe licenses"
git push
if ! git diff-index --quiet HEAD; then
git commit -m "Auto-update LICENSE file with current recipe licenses"
git push
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.

0 comments on commit 3ee87ac

Please sign in to comment.