Skip to content

Add IP query param to group and engage endpoints #91

Add IP query param to group and engage endpoints

Add IP query param to group and engage endpoints #91

name: Delete ReadMe Staging
on:
pull_request:
types:
- closed
paths:
- 'reference/**'
- 'openapi/**'
- '.github/actions/**'
- '.github/workflows/rdme-staging.yml'
jobs:
delete-staging:
if: ${{ github.event.pull_request.head.repo.full_name == 'mixpanel/docs' }}
runs-on: ubuntu-latest
steps:
- name: Check out repo 📚
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm ci
- name: Add node_modules to PATH
run: echo "$PWD/node_modules/.bin" >> $GITHUB_PATH
- name: Delete staging version
run: |
if rdme versions:delete 0.0-pr-${{ github.event.number }} --key=${{ secrets.README_API_KEY }}; then
echo "Version deleted successfully"
else
echo "Version doesn't exist, no need to delete"
fi