File tree 1 file changed +18
-6
lines changed 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -86,17 +86,29 @@ jobs:
86
86
version : ' v4.44.3'
87
87
force : true
88
88
89
- - name : Initialize mandatory git config
90
- run : |
91
- git config --global user.name 'GitHub Actions'
92
- git config --global user.email 'noreply@github.com'
93
-
94
89
- name : Bump version in values/stage.yaml
95
90
run : yq -i '.deployment.image.tag=strenv(RELEASE_VERSION)' ./k8s/values/stage.yaml
96
91
92
+ - uses : actions/create-github-app-token@v2
93
+ id : app-token
94
+ with :
95
+ app-id : ${{ vars.APP_ID }}
96
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
97
+
98
+ - name : Get GitHub App User ID
99
+ id : get-user-id
100
+ run : echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
101
+ env :
102
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
103
+
104
+ - name : Initialize mandatory git config
105
+ run : |
106
+ git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
107
+ git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
108
+
97
109
- name : Commit k8s values and push changes
98
110
env :
99
- GITHUB_TOKEN : ${{ secrets.GREEN_ECOLUTION_PAT }}
111
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
100
112
run : |
101
113
git add ./k8s/values/stage.yaml
102
114
git commit --message "chore: update stage image to version ${{ env.RELEASE_VERSION }}" \
You can’t perform that action at this time.
0 commit comments