Bump eslint-plugin-vue from 6.2.2 to 9.28.0 #332
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
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 "has_label=${{ contains(github.event.pull_request.labels.*.name, 'deploy-preview') }}" >> $GITHUB_OUTPUT | |
- name: Check if PR is deployed | |
id: http | |
run: echo "status_code=$(curl -o /dev/null -s -k -w "%{http_code}\n" https://pr-${{ github.event.pull_request.number }}.preview.sledilnik.org)" >> $GITHUB_OUTPUT | |
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@v4 | |
- name: Undeploy | |
uses: sledilnik/[email protected] | |
with: | |
action: undeploy | |
chartName: sledilnik/website | |
chartVersion: '0.9.0' | |
kubeconfig: '${{ secrets.KUBECONFIG }}' |