ci: 👷 auto update copyright year in license file
This commit is contained in:
21
.github/workflows/update-license.yml
vendored
Normal file
21
.github/workflows/update-license.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: 🔑 Update License
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 3 1 1 *' # At 03:00 on day-of-month 1 in January.
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: bubkoo/use-app-token@v1
|
||||
with:
|
||||
app_id: ${{ secrets.APP_ID }}
|
||||
private_key: ${{ secrets.PRIVATE_KEY }}
|
||||
env_name: bot_token
|
||||
- uses: FantasticFiasco/action-update-license-year@v2
|
||||
with:
|
||||
token: ${{ env.bot_token }}
|
Reference in New Issue
Block a user