Manuel Bustillo 14b527f8b4
Some checks failed
Check usage of free licenses / build-static-assets (pull_request) Successful in 1m30s
Add copyright notice / copyright_notice (pull_request) Failing after 2m29s
Playwright Tests / test (pull_request) Successful in 5m51s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 7m40s
Add notice only for rb files
2024-10-27 21:50:32 +01:00

27 lines
813 B
YAML

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