Skip to content

Commit 29f51a5

Browse files
committed
Another try at properly configure update of samples
1 parent 2047ec6 commit 29f51a5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release-perform.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,36 @@ jobs:
3232
name: Post release tasks
3333
runs-on: ubuntu-latest
3434
steps:
35+
- uses: actions/create-github-app-token@v1
36+
id: app-token
37+
name: Create GitHub App Token
38+
with:
39+
app-id: ${{ vars.CI_APP_ID }}
40+
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
41+
42+
- uses: actions/checkout@v4
43+
with:
44+
token: ${{ steps.app-token.outputs.token }}
45+
46+
- name: Get GitHub App User ID
47+
id: get-user-id
48+
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
49+
env:
50+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
51+
52+
- name: Configure Git author
53+
run: |
54+
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
55+
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
56+
57+
- uses: radcortez/project-metadata-action@main
58+
name: Retrieve project metadata
59+
id: metadata
60+
with:
61+
github-token: ${{secrets.GITHUB_TOKEN}}
62+
metadata-file-path: '.github/project.yml'
63+
local-file: true
64+
3565
- name: Update dependency versions for the samples
3666
run: |
3767
while IFS= read -r -d '' pom

0 commit comments

Comments
 (0)