Skip to content

πŸš€: Publish 2024.10 #12

πŸš€: Publish 2024.10

πŸš€: Publish 2024.10 #12

name: DeleteDeployGateDistributionPages
on:
pull_request:
branches:
- '*'
paths:
- example-app/SantokuApp/**
types:
- closed
jobs:
delete-distribution-pages:
name: Delete DeployGate distribution pages
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
runs-on: ubuntu-22.04
env:
DEPLOYGATE_ORGANIZATION_NAME: ${{ secrets.DEPLOYGATE_ORGANIZATION_NAME }}
DEPLOYGATE_API_KEY: ${{ secrets.DEPLOYGATE_API_KEY }}
BRANCH_REF: ${{ github.head_ref }}
steps:
- name: Delete DeployGate distribution pages
continue-on-error: true
env:
PLATFORMS: "android ios"
APP_ID_SUFFIXES: ".dev.debugAdvanced .dev.house .debugAdvanced .house"
run: |
for platform in ${PLATFORMS}; do
for appIdSuffix in ${APP_ID_SUFFIXES}; do
curl -X DELETE -H "Authorization: token ${DEPLOYGATE_API_KEY}" "https://deploygate.com/api/users/${DEPLOYGATE_ORGANIZATION_NAME}/platforms/${platform}/jp.fintan.mobile.SantokuApp${appIdSuffix}/distributions" -F "distribution_name=${BRANCH_REF#refs/heads/}"
done
done