Skip to content

Commit 9340e15

Browse files
committed
more fixes
1 parent 53fc05c commit 9340e15

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/trademark-cla-approval.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions: write-all
1717
jobs:
1818
process-cla-approval:
1919
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')
2121

2222
steps:
2323

@@ -41,12 +41,6 @@ jobs:
4141
with:
4242
github-token: ${{ steps.generate-token.outputs.token || secrets.GITHUB_TOKEN }}
4343
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-
5044
let prNumber;
5145
let approvedBy;
5246
let prAuthor;
@@ -240,16 +234,16 @@ jobs:
240234
owner: context.repo.owner,
241235
repo: context.repo.repo,
242236
issue_number: prNumber,
243-
body: `## Trademark license agreement confirmed
237+
body: `## Trademark license agreement
244238
245-
The trademark license agreement has been approved for @${prAuthor}.
239+
The trademark license agreement process has been completed for @${prAuthor}.
246240
247-
**Status:** Approved
241+
**Status:** Complete
248242
**Date:** ${new Date().toISOString()}
249-
**Approved by:** @${approvedBy}
243+
**Signed by:** @${approvedBy}
250244
**Method:** ${method}
251245
252-
This PR is now unblocked and can proceed with normal review!`
246+
This PR is now unblocked and can proceed with normal review.`
253247
});
254248
}
255249

0 commit comments

Comments
 (0)