Skip to content

Commit d7b98eb

Browse files
authored
Update release.yml (#122)
## What was changed Try a different auth way for the second job ## Why? to be able to identify as an app, not an action ## Checklist <!--- add/delete as needed ---> 1. Closes <!-- add issue number here --> 2. How was this tested: <!--- Please describe how you tested your changes/how we can test them --> 3. Any docs updates needed? <!--- update README if applicable or point out where to update docs.temporal.io -->
1 parent 28b7c2a commit d7b98eb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: release
22

33
on:
4+
workflow_dispatch:
45
release:
56
types:
67
- published
@@ -55,16 +56,25 @@ jobs:
5556
needs: release
5657
runs-on: ubuntu-latest
5758
steps:
59+
60+
- name: Generate token
61+
id: generate_token
62+
uses: actions/create-github-app-token@v2
63+
with:
64+
app-id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
65+
private-key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}
66+
owner: ${{ github.repository_owner }}
67+
5868
- name: Checkout
5969
uses: actions/checkout@v4
6070
with:
71+
token: ${{ steps.generate_token.outputs.token }}
6172
ref: main
6273
fetch-depth: 0
6374

6475
- name: Configure Git
6576
run: |
66-
git config user.name "temporal-cicd[app]"
67-
git config user.email "[email protected]"
77+
echo ${{ steps.generate_token.outputs.token }} | gh auth login --with-token
6878
6979
- name: Install Helm
7080
uses: azure/setup-helm@v3

0 commit comments

Comments
 (0)