chore: update PWA minor dependencies #456
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-workflow.json | |
name: Cleanup | |
on: | |
pull_request: | |
types: [ closed ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
GKE_CLUSTER: api-platform-demo | |
GCE_ZONE: europe-west1-c | |
jobs: | |
cleanup: | |
name: Uninstall K8s Release for Closed Pull Request | |
if: ${{ github.repository == 'api-platform/demo' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- | |
name: Auth gcloud | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GKE_SA_KEY }} | |
- | |
name: Setup gcloud | |
uses: google-github-actions/setup-gcloud@v2 | |
with: | |
project_id: ${{ secrets.GKE_PROJECT }} | |
- | |
name: Configure gcloud | |
run: | | |
gcloud components install gke-gcloud-auth-plugin | |
gcloud --quiet auth configure-docker | |
gcloud container clusters get-credentials ${{ env.GKE_CLUSTER }} --zone ${{ env.GCE_ZONE }} | |
- | |
name: Check for existing namespace | |
id: k8s-namespace | |
run: echo "namespace=$(kubectl get namespace pr-${{ github.event.number }} | tr -d '\n' 2> /dev/null)" >> $GITHUB_OUTPUT | |
- | |
name: Uninstall release | |
if: steps.k8s-namespace.outputs.namespace != '' | |
run: kubectl delete namespace pr-${{ github.event.number }} |