Skip to content

Bump xunit.runner.visualstudio from 2.4.2 to 2.5.1 in /tests/Visualizations.Tests #298

Bump xunit.runner.visualstudio from 2.4.2 to 2.5.1 in /tests/Visualizations.Tests

Bump xunit.runner.visualstudio from 2.4.2 to 2.5.1 in /tests/Visualizations.Tests #298

Workflow file for this run

name: PR Cleanup
on:
pull_request:
types: [closed, unlabeled]
env:
DEPLOY_NAMESPACE: sledilnik-pr
RELEASE_NAME: website-pr-${{ github.event.pull_request.number }}
DEPLOY_ENV: pr-${{ github.event.pull_request.number }}
jobs:
check:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Check if PR is labeled
id: label
run: echo ::set-output name=has_label::${{ contains(github.event.pull_request.labels.*.name, 'deploy-preview') }}
- name: Check if PR is deployed
id: http
run: echo ::set-output name=status_code::$(curl -o /dev/null -s -k -w "%{http_code}\n" https://pr-${{ github.event.pull_request.number }}.preview.sledilnik.org)
outputs:
status_code: ${{ steps.http.outputs.status_code }}
has_label: ${{ steps.label.outputs.has_label }}
undeploy:
runs-on: ubuntu-20.04
needs: [check]
if: "needs.check.status_code != '404' && (github.event.action == 'closed' || !needs.check.has_label)"
steps:
- name: Debug
uses: hmarr/[email protected]
- name: Checkout repo
uses: actions/checkout@v3
- name: Undeploy
uses: sledilnik/[email protected]
with:
action: undeploy
chartName: sledilnik/website
chartVersion: '0.9.0'
kubeconfig: '${{ secrets.KUBECONFIG }}'