Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

feat: Enable StatelessNet network #54

feat: Enable StatelessNet network

feat: Enable StatelessNet network #54

name: Delete GCP Explorer Environments Tags of closed PR
# only trigger on pull request closed/merged events
on:
pull_request:
types: [closed]
env:
REGION: "us-central1"
jobs:
merge_job:
runs-on: ubuntu-latest
steps:
- name: "Authenticate to GCloud"
uses: "google-github-actions/auth@v1"
with:
credentials_json: "${{ secrets.CI_EXPLORER_UI_SA_DEV_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- name: "Remove Frontend dev environment tags for closed PR"
run: |
gcloud run services update-traffic "explorer-frontend" --remove-tags pr-${{ env.PR_NUMBER }} --region ${{ env.REGION }}
env:
PR_NUMBER: ${{ github.event.number }}
- name: "Remove Backend Testnet dev environment tags for closed PR"
run: |
gcloud run services update-traffic "explorer-backend-testnet" --remove-tags pr-${{ env.PR_NUMBER }} --region ${{ env.REGION }}
env:
PR_NUMBER: ${{ github.event.number }}
- name: "Remove Backend Mainnet dev environment tags for closed PR"
run: |
gcloud run services update-traffic "explorer-backend-mainnet" --remove-tags pr-${{ env.PR_NUMBER }} --region ${{ env.REGION }}
env:
PR_NUMBER: ${{ github.event.number }}