Skip to content

ERM-3368: Update module license, guidance and dependencies #44

ERM-3368: Update module license, guidance and dependencies

ERM-3368: Update module license, guidance and dependencies #44

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\"}"