Skip to content

feat: schematics for guide (2) - modernize-apps-migrated-from-2211.32-to-2211.35.md #18974

feat: schematics for guide (2) - modernize-apps-migrated-from-2211.32-to-2211.35.md

feat: schematics for guide (2) - modernize-apps-migrated-from-2211.32-to-2211.35.md #18974

Workflow file for this run

on:
pull_request:
types: [opened, synchronize]
name: Add license header to files
jobs:
add_license_header:
name: Add license header to files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GH_PR_TOKEN }}
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Download reuse tool
run: pip3 install --user reuse
- name: Setup git config
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Adding license header to files
run: ci-scripts/prepend-license.sh
- name: push added headers
run: |
git pull origin ${{ github.event.pull_request.head.ref }}
if [ -z $(git status --porcelain) ];
then
echo "No files to commit"
else
git commit -am "Add license header"
git push
fi