license-update #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: license-update | |
on: | |
schedule: | |
- cron: '0 12 * * 0' # Every Sunday at 12 PM | |
workflow_dispatch: | |
jobs: | |
update-license: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Git user | |
run: | | |
git config --global user.email "${{ secrets.EMAIL }}" | |
git config --global user.name "${{ secrets.USER_NAME }}" | |
- name: Update LICENSE and README.md | |
run: | | |
chmod +x ./scripts/license-update.sh | |
./scripts/license-update.sh | |
- name: Commit and push changes | |
run: | | |
git add LICENSE README.md | |
git commit -m "Updated License and ReadMe files" | |
git push origin $(git rev-parse --abbrev-ref HEAD) |