File tree Expand file tree Collapse file tree 4 files changed +48
-2
lines changed
Expand file tree Collapse file tree 4 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Update License Year
2+
3+ on :
4+ schedule :
5+ - cron : " 0 3 1 1 *" # 03:00 AM on January 1
6+
7+ permissions :
8+ contents : write
9+ pull-requests : write
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v2
17+ with :
18+ fetch-depth : 0
19+
20+ - name : Set Current year
21+ run : " echo CURRENT=$(date +%Y) >> $GITHUB_ENV"
22+
23+ - name : Set Previous Year
24+ run : " echo PREVIOUS=$(($CURRENT-1)) >> $GITHUB_ENV"
25+
26+ - name : Update LICENSE
27+ uses : jacobtomlinson/gha-find-replace@v2
28+ with :
29+ find : ${{ env.PREVIOUS }}
30+ replace : ${{ env.CURRENT }}
31+ include : " LICENSE.txt"
32+ regex : false
33+
34+ - name : Commit files
35+ run : |
36+ git config user.name 'github-actions[bot]'
37+ git config user.email 'github-actions[bot]@users.noreply.github.com'
38+ git commit -m "Updated License Year" -a
39+
40+ - name : Create Pull Request
41+ uses : peter-evans/create-pull-request@v3
42+ with :
43+ token : ${{ secrets.GITHUB_TOKEN }}
44+ title : Update License Year
45+ branch : update-license
Original file line number Diff line number Diff line change 1- 9.1.1 (Dec 16, 2021 )
1+ 9.1.1 (March 4, 2022 )
22- Deprecated old telemetry.
33
449.1.0 (Jul 15, 2021)
Original file line number Diff line number Diff line change 1- Copyright © 2021 Split Software, Inc.
1+ Copyright © 2022 Split Software, Inc.
22
33Licensed under the Apache License, Version 2.0 (the "License");
44you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1111 'coverage' ,
1212 'pytest-cov' ,
1313 'importlib-metadata==4.2'
14+ 'tomli==1.2.3' ,
1415]
1516
1617INSTALL_REQUIRES = [
You can’t perform that action at this time.
0 commit comments