Update LICENSE file #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update LICENSE file | |
on: | |
push: | |
paths: | |
- "**/*.bb" | |
- "**/*.inc" | |
schedule: | |
- cron: "0 0 * * *" # Runs daily at midnight | |
workflow_dispatch: # Allows manual run | |
jobs: | |
update-license: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run license generation script | |
run: | | |
chmod +x ./generate-license-file.sh | |
./generate-license-file.sh | |
- 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 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |