From ce9039156476333b2ce1fde3e712221878203901 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 27 Oct 2024 21:26:40 +0100 Subject: [PATCH] Add action to include copyright notice --- .github/workflows/copyright_notice.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/copyright_notice.yml diff --git a/.github/workflows/copyright_notice.yml b/.github/workflows/copyright_notice.yml new file mode 100644 index 0000000..1f1d808 --- /dev/null +++ b/.github/workflows/copyright_notice.yml @@ -0,0 +1,24 @@ +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' + FileType: '.rb, .erb, .jsx, tsx' + 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 \ No newline at end of file