Commit 1a5925b 1 parent db1ad07 commit 1a5925b Copy full SHA for 1a5925b
File tree 2 files changed +26
-8
lines changed
2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,22 @@ jobs:
61
61
# is of the form `<model>@git.<version>`.
62
62
run : echo "name=$(yq '${{ env.SPACK_YAML_MODEL_YQ }} | split("@git.") | .[1]' spack.yaml)" >> $GITHUB_OUTPUT
63
63
64
+ - name : Import Commit-Signing Key
65
+ uses : crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
66
+ with :
67
+ gpg_private_key : ${{ secrets.GH_ACTIONS_BOT_GPG_PRIVATE_KEY }}
68
+ passphrase : ${{ secrets.GH_ACTIONS_BOT_GPG_PASSPHRASE }}
69
+ git_config_global : true
70
+ git_committer_name : ${{ vars.GH_ACTIONS_BOT_GIT_USER_NAME }}
71
+ git_committer_email : ${{ vars.GH_ACTIONS_BOT_GIT_USER_EMAIL }}
72
+ git_user_signingkey : true
73
+ git_commit_gpgsign : true
74
+ git_tag_gpgsign : true
75
+
64
76
- name : Push Tag
65
- # NOTE: Regarding the config user.name/user.email, see https://github.com/actions/checkout/pull/1184
66
77
run : |
67
- git config user.name ${{ vars.GH_ACTIONS_BOT_GIT_USER_NAME }}
68
- git config user.email ${{ vars.GH_ACTIONS_BOT_GIT_USER_EMAIL }}
69
- git tag ${{ steps.tag.outputs.name }} --force
70
- git push --tags --force
78
+ git tag ${{ steps.tag.outputs.name }}
79
+ git push --tags
71
80
72
81
deploy-release :
73
82
name : Deploy Release
Original file line number Diff line number Diff line change @@ -91,11 +91,20 @@ jobs:
91
91
versioning-scheme : calver-minor
92
92
bump-type : ${{ steps.setup.outputs.bump }}
93
93
94
+ - name : Import Commit-Signing Key
95
+ uses : crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
96
+ with :
97
+ gpg_private_key : ${{ secrets.GH_ACTIONS_BOT_GPG_PRIVATE_KEY }}
98
+ passphrase : ${{ secrets.GH_ACTIONS_BOT_GPG_PASSPHRASE }}
99
+ git_config_global : true
100
+ git_committer_name : ${{ vars.GH_ACTIONS_BOT_GIT_USER_NAME }}
101
+ git_committer_email : ${{ vars.GH_ACTIONS_BOT_GIT_USER_EMAIL }}
102
+ git_user_signingkey : true
103
+ git_commit_gpgsign : true
104
+ git_tag_gpgsign : true
105
+
94
106
- name : Update, Commit and Push the Bump
95
107
run : |
96
- git config user.name ${{ vars.GH_ACTIONS_BOT_GIT_USER_NAME }}
97
- git config user.email ${{ vars.GH_ACTIONS_BOT_GIT_USER_EMAIL }}
98
-
99
108
yq -i '${{ env.SPACK_YAML_MODEL_YQ }} = "${{ inputs.root-sbd }}@git.${{ steps.bump.outputs.after }}"' spack.yaml
100
109
yq -i '${{ env.SPACK_YAML_MODEL_PROJECTION_YQ }} = "{name}/${{ steps.bump.outputs.after }}"' spack.yaml
101
110
git add spack.yaml
You can’t perform that action at this time.
0 commit comments