Merge pull request #314 from hellhound94/topic/fix-script

Changes in generate-license-file script
This commit is contained in:
Otavio Salvador 2024-12-04 10:20:20 -03:00 committed by GitHub
commit bc2a12c545
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -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
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 }}

View File