Manuel Bustillo 9fe306004b
Some checks failed
Check usage of free licenses / build-static-assets (pull_request) Successful in 1m47s
Add copyright notice / copyright_notice (pull_request) Successful in 2m31s
Build Nginx-based docker image / build-static-assets (pull_request) Failing after 5m52s
Playwright Tests / test (pull_request) Successful in 5m3s
Fix extension
2024-10-27 22:02:14 +01:00

33 lines
975 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: '.tsx, .jsx'
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