chore: release 2211.28.0 #15354
Workflow file for this run
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
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 |