mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-05 05:15:24 +02:00
generate-license-file: Move script to scripts folder
This commit also adds if condition to check license file change. It is to avoid empty commits. Signed-off-by: Abner C. Paula <abner.cordeiro@ossystems.com.br>
This commit is contained in:
parent
2291cfad43
commit
3ee87aca07
6
.github/workflows/update-license-file.yml
vendored
6
.github/workflows/update-license-file.yml
vendored
|
@ -19,15 +19,17 @@ jobs:
|
||||||
|
|
||||||
- name: Run license generation script
|
- name: Run license generation script
|
||||||
run: |
|
run: |
|
||||||
chmod +x ./generate-license-file.sh
|
./scripts/generate-license-file
|
||||||
./generate-license-file.sh
|
|
||||||
|
|
||||||
- name: Commit and push LICENSE file
|
- name: Commit and push LICENSE file
|
||||||
run: |
|
run: |
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git add LICENSE
|
git add LICENSE
|
||||||
|
if ! git diff-index --quiet HEAD; then
|
||||||
git commit -m "Auto-update LICENSE file with current recipe licenses"
|
git commit -m "Auto-update LICENSE file with current recipe licenses"
|
||||||
git push
|
git push
|
||||||
|
fi
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
0
generate-license-file.sh → scripts/generate-license-file
Normal file → Executable file
0
generate-license-file.sh → scripts/generate-license-file
Normal file → Executable file
Loading…
Reference in New Issue
Block a user