Manuel Bustillo 1a44ecd8e6
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 2m39s
Playwright Tests / test (pull_request) Successful in 4m57s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 11m5s
Add debug message to check if there are changes
2024-10-27 21:59:23 +01:00

33 lines
965 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 .
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
else
echo "no changes";
fi
git commit -m "Add copyright notice"
- name: Push changes
run: git push