Skip to content

Commit 2f375d4

Browse files
authored
Merge pull request #163 from datamweb/datamweb-patch-2
Update auto-update-copyright.yml
2 parents e75b984 + 5962704 commit 2f375d4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/auto-update-copyright.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,30 @@ jobs:
2828
run: echo $GPG_KEY | base64 --decode | gpg --batch --import
2929
env:
3030
GPG_KEY: ${{ secrets.GPG_KEY }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
CURRENT_YEAR: ${{ env.CURRENT_YEAR }}
33+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
34+
GPG_KEY_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}
35+
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
36+
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
37+
GIT_AUTHOR_NAME: Pooya Parsa Dadashi
38+
GIT_AUTHOR_EMAIL: pooya_parsa_dadashi@yahoo.com
3139

3240
- name: Add the custom gpg siging program that passes the passphrase to the gpg CLI
3341
run: |
3442
rm -rf /tmp/gpg.sh
3543
echo '#!/bin/bash' >> /tmp/gpg.sh
3644
echo 'gpg --batch --pinentry-mode=loopback --passphrase $GPG_KEY_PASSPHRASE $@' >> /tmp/gpg.sh
3745
chmod +x /tmp/gpg.sh
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
CURRENT_YEAR: ${{ env.CURRENT_YEAR }}
49+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
50+
GPG_KEY_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}
51+
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
52+
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
53+
GIT_AUTHOR_NAME: Pooya Parsa Dadashi
54+
GIT_AUTHOR_EMAIL: pooya_parsa_dadashi@yahoo.com
3855

3956
- name: Create new branch and commit changes
4057
env:
@@ -62,7 +79,7 @@ jobs:
6279
git switch -c $BRANCH_NAME develop
6380
python .github/workflows/update_copyright.py # Run the Python script
6481
git add . # Ensure all changes are added
65-
git commit -m "docs: update copyright year to ${{ env.CURRENT_YEAR }}"
82+
git commit -S -m "docs: update copyright year to ${{ env.CURRENT_YEAR }}"
6683
git push -f origin $BRANCH_NAME
6784
6885

0 commit comments

Comments
 (0)