File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,22 @@ jobs:
2626 # history is needed to run git cherry-pick below
2727 fetch-depth : 0
2828
29- - name : Use CLA approved github bot
30- run : .github/scripts/use-cla-approved-github-bot.sh
31-
3229 - uses : actions/create-github-app-token@136412a57a7081aa63c935a2cc2918f76c34f514 # v1.11.2
3330 id : app-token
3431 with :
35- app-id : ${{ secrets.OPENTELEMETRY_BASIC_AUTOMATION_APP_ID }}
32+ app-id : ${{ secrets.OPENTELEMETRY_BASIC_AUTOMATION_CLIENT_ID }}
3633 private-key : ${{ secrets.OPENTELEMETRY_BASIC_AUTOMATION_PRIVATE_KEY }}
3734
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+
3845 - name : Create pull request
3946 env :
4047 NUMBER : ${{ github.event.inputs.number }}
You can’t perform that action at this time.
0 commit comments