Skip to content

[AUTOMATIC] Release/5.2.0 #15

[AUTOMATIC] Release/5.2.0

[AUTOMATIC] Release/5.2.0 #15

name: Trigger All Tests
on:
issue_comment:
types: [created]
jobs:
trigger-circleci:
runs-on: ubuntu-latest
if: |
${{ github.event.issue.pull_request }} &&
github.event.comment.body == '@RCGitBot please test'
steps:
- name: Check membership in RevenueCat Org
id: verify
# ensure that only RevenueCat members can trigger this
run: |
RESPONSE=$(curl https://api.github.com/orgs/RevenueCat/members/${{ github.event.comment.user.login }})
if [[ "$RESPONSE" == *"Not Found"* ]]; then
echo "User is not a member of the organization"
exit 1
fi
echo "User is a member of the organization"
- name: Trigger CircleCI workflow
id: trigger_circleci_workflow
if: success()
uses: CircleCI-Public/[email protected]
with:
GHA_Action: "run-from-github-comments"
env:
CCI_TOKEN: ${{ secrets.CIRCLECI_TOKEN }}