@@ -16,54 +16,54 @@ jobs:
1616 outputs :
1717 pull-request-url : ${{ steps.create-pull-request.outputs.pull-request-url }}
1818 steps :
19- -
20- name : Checkout repository
21- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
22- -
23- name : Identify all-time contributors to this repository
24- uses : github/contributors@e345de71bbd056a34a70709afd4f4bf0a270cc1a # v1.7.7
25- env :
26- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27- REPOSITORY : ${{ github.repository }}
28- LINK_TO_PROFILE : ' True'
29- -
30- name : Rename contributor file
31- run : |
32- rm -rf contributors.json
33- mv contributors.md CONTRIBUTORS.md
34- -
35- name : Switch to go-openapi bot user
36- uses : actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
37- id : app-token
38- with :
39- app-id : ${{ secrets.CI_BOT_APP_ID }}
40- private-key : ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
41- -
42- name : Import GPG key
43- uses : crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
44- with :
45- gpg_private_key : ${{ secrets.CI_BOT_GPG_PRIVATE_KEY }}
46- passphrase : ${{ secrets.CI_BOT_GPG_PASSPHRASE }}
47- fingerprint : ${{ secrets.CI_BOT_SIGNING_KEY }}
48- git_user_signingkey : true
49- git_commit_gpgsign : true
50- git_tag_gpgsign : true
51- -
52- name : Create a PR
53- id : create-pull-request
54- uses : peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
55- with :
56- commit-message : " doc: updated contributors file"
57- branch : doc/contributors-bot
58- delete-branch : true
59- title : " doc: updated contributors file"
60- token : ${{ steps.app-token.outputs.token }}
61- labels : " bot"
62- draft : false
63- assignees : fredbi
64- reviewers : fredbi
65- sign-commits : true
66- signoff : true # DCO
19+ -
20+ name : Checkout repository
21+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
22+ -
23+ name : Identify all-time contributors to this repository
24+ uses : github/contributors@e345de71bbd056a34a70709afd4f4bf0a270cc1a # v1.7.7
25+ env :
26+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27+ REPOSITORY : ${{ github.repository }}
28+ LINK_TO_PROFILE : ' True'
29+ -
30+ name : Rename contributor file
31+ run : |
32+ rm -rf contributors.json
33+ mv contributors.md CONTRIBUTORS.md
34+ -
35+ name : Switch to go-openapi bot user
36+ uses : actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
37+ id : app-token
38+ with :
39+ app-id : ${{ secrets.CI_BOT_APP_ID }}
40+ private-key : ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
41+ -
42+ name : Import GPG key
43+ uses : crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
44+ with :
45+ gpg_private_key : ${{ secrets.CI_BOT_GPG_PRIVATE_KEY }}
46+ passphrase : ${{ secrets.CI_BOT_GPG_PASSPHRASE }}
47+ fingerprint : ${{ secrets.CI_BOT_SIGNING_KEY }}
48+ git_user_signingkey : true
49+ git_commit_gpgsign : true
50+ git_tag_gpgsign : true
51+ -
52+ name : Create a PR
53+ id : create-pull-request
54+ uses : peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
55+ with :
56+ commit-message : " doc: updated contributors file"
57+ branch : doc/contributors-bot
58+ delete-branch : true
59+ title : " doc: updated contributors file"
60+ token : ${{ steps.app-token.outputs.token }}
61+ labels : " bot"
62+ draft : false
63+ assignees : fredbi
64+ reviewers : fredbi
65+ sign-commits : true
66+ signoff : true # DCO
6767
6868 auto-merge :
6969 # description: |
7777 PR_URL : ${{needs.update-contributors.outputs.pull-request-url}}
7878 GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
7979 steps :
80+ -
81+ name : Checkout repository
82+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
8083 -
8184 name : Auto-approve PR
8285 run : gh pr review --approve "$PR_URL"
0 commit comments