File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 11name : ' setup-gpg'
22description : ' Prepare to get following commits signed'
33
4+ inputs :
5+ gpgPriv :
6+ description : ' GPG Private key'
7+ required : true
8+ default : ' '
9+ gpgPassPhrase :
10+ description : ' GPG passphrase'
11+ required : false
12+ default : ' ""'
13+
414runs :
515 using : composite
616 steps :
717 - name : Import and load GPG key
818 uses : crazy-max/ghaction-import-gpg@v6
919 with :
10- gpg_private_key : ${{ secrets.GPG_SIGN_KEY }}
11- passphrase : ${{ secrets.GPG_PASSPHRASE }}
20+ gpg_private_key : ${{ inputs.gpgPriv }}
21+ passphrase : ${{ inputs.gpgPassPhrase }}
1222 git_user_signingkey : true
1323 git_commit_gpgsign : true
Original file line number Diff line number Diff line change @@ -13,12 +13,23 @@ inputs:
1313 description : ' Defines if a `git add.` should be made or not.'
1414 required : false
1515 default : false
16+ gpgPriv :
17+ description : ' GPG Private key'
18+ required : true
19+ default : ' '
20+ gpgPassPhrase :
21+ description : ' GPG passphrase'
22+ required : false
23+ default : ' ""'
1624
1725runs :
1826 using : composite
1927 steps :
2028 - name : Setup GPG to sign commits
2129 uses : ./.github/os-git-actions/setup-gpg/
30+ with :
31+ gpgPriv : ${{ inputs.gpgPriv }}
32+ gpgPassPhrase : ${{ inputs.gpgPassPhrase }}
2233
2334 - name : Perform git commit
2435 uses : ./.github/os-git-actions/manual-commit/
Original file line number Diff line number Diff line change @@ -119,3 +119,5 @@ jobs:
119119 branch : dev
120120 message : ' Updated into v${{ inputs.new-dev-release }} [skip ci]'
121121 newFiles : true
122+ gpgPriv : ${{ secrets.GPG_SIGN_KEY }}
123+ gpgPassPhrase : ${{ secrets.GPG_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments