24 lines
788 B
YAML
Raw Normal View History

2024-10-27 21:26:40 +01:00
name: Add copyright notice
on:
pull_request:
jobs:
copyright_notice:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
with:
CopyrightString: 'Copyright (C) 2024 Manuel Bustillo\n'
2024-10-27 21:28:09 +01:00
FileType: '.rb, .erb, .jsx, .tsx'
2024-10-27 21:26:40 +01:00
Path: 'app/, config/, db/'
IgnorePath: 'testfolder1/a/, testfolder3'
- name: Commit changes
run: |
git config --local user.email "bustikiller@bustikiller.com"
git config --local user.name "Manuel Bustillo"
git add .
git commit -m "Add copyright notice"
- name: Push changes
2024-10-27 21:40:44 +01:00
run: git push origin HEAD:${GITHUB_REF##*/}