File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ permissions: write-all
17
17
jobs :
18
18
process-cla-approval :
19
19
runs-on : ubuntu-latest
20
- if : github.event_name == 'workflow_dispatch' || github.event.label.name == 'cla-signed' || github.event_name == 'issue_comment'
20
+ if : ( github.event_name == 'workflow_dispatch' || github.event.label.name == 'cla-signed' || github.event_name == 'issue_comment') && !contains(github.actor, 'workflow-authentication-public')
21
21
22
22
steps :
23
23
41
41
with :
42
42
github-token : ${{ steps.generate-token.outputs.token || secrets.GITHUB_TOKEN }}
43
43
script : |
44
- // Exit early if this is the bot adding labels to prevent double execution
45
- if (context.actor.includes('workflow-authentication-public')) {
46
- console.log(`Skipping execution for bot actor: ${context.actor}`);
47
- return;
48
- }
49
-
50
44
let prNumber;
51
45
let approvedBy;
52
46
let prAuthor;
@@ -240,16 +234,16 @@ jobs:
240
234
owner: context.repo.owner,
241
235
repo: context.repo.repo,
242
236
issue_number: prNumber,
243
- body: `## Trademark license agreement confirmed
237
+ body: `## Trademark license agreement
244
238
245
- The trademark license agreement has been approved for @${prAuthor}.
239
+ The trademark license agreement process has been completed for @${prAuthor}.
246
240
247
- **Status:** Approved
241
+ **Status:** Complete
248
242
**Date:** ${new Date().toISOString()}
249
- **Approved by:** @${approvedBy}
243
+ **Signed by:** @${approvedBy}
250
244
**Method:** ${method}
251
245
252
- This PR is now unblocked and can proceed with normal review! `
246
+ This PR is now unblocked and can proceed with normal review. `
253
247
});
254
248
}
255
249
You can’t perform that action at this time.
0 commit comments