File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,22 @@ jobs:
26
26
# history is needed to run git cherry-pick below
27
27
fetch-depth : 0
28
28
29
- - name : Use CLA approved github bot
30
- run : .github/scripts/use-cla-approved-github-bot.sh
31
-
32
29
- uses : actions/create-github-app-token@136412a57a7081aa63c935a2cc2918f76c34f514 # v1.11.2
33
30
id : app-token
34
31
with :
35
32
app-id : ${{ secrets.OPENTELEMETRY_BASIC_AUTOMATION_APP_ID }}
36
33
private-key : ${{ secrets.OPENTELEMETRY_BASIC_AUTOMATION_PRIVATE_KEY }}
37
34
35
+ - name : Use CLA approved author
36
+ env :
37
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
38
+ run : |
39
+ user_name=${{ steps.app-token.outputs.app-slug }}[bot]
40
+ user_id=$(gh api "/users/$user_name" --jq .id)
41
+
42
+ git config user.name "$user_name"
43
+ git config user.email "${user_id}+${user_name}@users.noreply.github.com"
44
+
38
45
- name : Create pull request
39
46
env :
40
47
NUMBER : ${{ github.event.inputs.number }}
You can’t perform that action at this time.
0 commit comments