perf: push kb #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: stuckLicenseCLA | |
on: | |
pull_request: | |
types: [opened] | |
## Adapted from github discussion comment https://github.com/orgs/community/discussions/69944#discussioncomment-7281028 | |
jobs: | |
github-actions-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create License CLA comment | |
run: | | |
# Use GitHub API to create a comment on the PR | |
PR_NUMBER=${{ github.event.pull_request.number }} | |
COMMENT="[License CLA Stuck?](https://cla-assistant.io/check/${{ github.repository }}?pullRequest=${PR_NUMBER}) (Developer should make sure that it is really stuck before clicking)" | |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | |
COMMENT_URL="https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments" | |
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST $COMMENT_URL -d "{\"body\":\"$COMMENT\"}" |