2024-10-27 21:26:40 +01:00
|
|
|
name: Add copyright notice
|
|
|
|
on:
|
|
|
|
pull_request:
|
2024-10-27 21:46:37 +01:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2024-10-27 21:26:40 +01:00
|
|
|
jobs:
|
|
|
|
copyright_notice:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2024-10-27 21:46:37 +01:00
|
|
|
ref: ${{ github.head_ref }}
|
2024-10-27 21:26:40 +01:00
|
|
|
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
|
|
|
|
with:
|
2024-10-27 21:50:32 +01:00
|
|
|
CopyrightString: '# Copyright (C) 2024 Manuel Bustillo\n\n'
|
|
|
|
FileType: '.rb'
|
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:46:37 +01:00
|
|
|
run: git push
|