Skip to content

Commit 42f8b6a

Browse files
committed
try hand-rolling update-copyright
1 parent bc53ed3 commit 42f8b6a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/source-maintenance.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ permissions:
99
contents: read
1010
pull-requests: write
1111

12+
env:
13+
# empty except for pull_request events
14+
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
15+
CHECKOUT_FETCH_DEPTH: 1001
16+
1217
jobs:
1318
source-maintenance:
1419

@@ -32,7 +37,12 @@ jobs:
3237
with:
3338
fetch-depth: ${{ env.CHECKOUT_FETCH_DEPTH }}
3439

35-
- run: ./test-suite/test-sources.sh
40+
- name: Fix sources
41+
run: |
42+
baserev=`usr/bin/git rev-parse refs/pull/${PULL_REQUEST_NUMBER}/merge^1`
43+
./scripts/source-maintenance.sh --check-and-update-copyright yes --only-changed-since $baserev --update-contributors-since never
44+
# COPYRIGHT_YEARS=`date +"1996-%Y"`
45+
# sed -i~ "s/1996-2[0-9]+ The Squid Software Foundation and contributors/${COPYRIGHT_YEARS} The Squid Software Foundation and contributors/g" $(git diff --name-only --cached refs/pull/${PULL_REQUEST_NUMBER}/merge^1)
3646

3747
- uses: parkerbxyz/suggest-changes@v1
3848
with:

0 commit comments

Comments
 (0)