summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2025-04-01 14:34:45 -0300
committerGitHub <noreply@github.com>2025-04-01 14:34:45 -0300
commit3a2b7166425579d1fba35a45072d23c6d927751d (patch)
tree2b9ec350bdd22d48aa6a9b83e7c31d773cede8ad /.github/workflows
parent5d71d4f20f8b676fc5308141f8f5002745b7d20e (diff)
parentf3fd802ed59e88bac10d5aa9178c4f33aa44fa48 (diff)
downloadmeta-freescale-mickledore.tar.gz
Merge pull request #2172 from mdrodrigo/topic/mickledoremickledore
Add update-license-file in mickledore branch
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/update-license-file.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/update-license-file.yml b/.github/workflows/update-license-file.yml
new file mode 100644
index 000000000..2ccfe6636
--- /dev/null
+++ b/.github/workflows/update-license-file.yml
@@ -0,0 +1,47 @@
1name: Update LICENSE file
2
3on:
4 push:
5 branches:
6 - master
7 - walnascar
8 - styhead
9 - scarthgap
10 - nanbield
11 - mickledore
12 - kirkstone
13 - honister
14 - hardknott
15 - gatesgarth
16 - dunfell
17 paths:
18 - "**/*.bb"
19 - "**/*.inc"
20 schedule:
21 - cron: "0 0 * * *" # Runs daily at midnight
22 workflow_dispatch: # Allows manual run
23
24jobs:
25 update-license:
26 runs-on: ubuntu-latest
27
28 steps:
29 - name: Checkout repository
30 uses: actions/checkout@v3
31
32 - name: Run license generation script
33 run: |
34 ./scripts/generate-license-file
35
36 - name: Commit and push LICENSE file
37 run: |
38 git config --local user.name "github-actions[bot]"
39 git config --local user.email "github-actions[bot]@users.noreply.github.com"
40 git add LICENSE
41 if ! git diff-index --quiet HEAD; then
42 git commit -m "Auto-update LICENSE file with current recipe licenses"
43 git push
44 fi
45
46 env:
47 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}