Skip to content

Commit 46ce45a

Browse files
authored
Merge pull request #9 from commercetools/ajimae-patch-1
[Chore] Add Admin User
2 parents da24bc9 + 642e83f commit 46ce45a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ jobs:
1818
app_id: ${{ secrets.CT_CHANGESETS_APP_ID }}
1919
private_key: ${{ secrets.CT_CHANGESETS_APP_PEM }}
2020

21+
# Get an app user (ct-release-bot)
22+
- name: Get App user
23+
id: get_app_user
24+
env:
25+
GITHUB_TOKEN: ${{ steps.generate_github_token.outputs.token }}
26+
run: |
27+
export GH_APP_USER=`gh api /users/ct-changesets%5Bbot%5D | jq .id`
28+
echo "email=${GH_APP_USER}+ct-changesets[bot]@users.noreply.github.com" >> "$GITHUB_OUTPUT"
29+
2130
- name: Checkout
2231
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2332
with:

0 commit comments

Comments
 (0)