Skip to content

Commit 16041ed

Browse files
committed
Workflow updates
1 parent a9217ee commit 16041ed

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/backport.yml

+10-3
Original file line numberDiff line numberDiff 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:
3532
app-id: ${{ secrets.OPENTELEMETRY_BASIC_AUTOMATION_APP_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 }}

0 commit comments

Comments
 (0)