Skip to content

build(deps-dev): bump husky from 8.0.3 to 9.0.11 #9

build(deps-dev): bump husky from 8.0.3 to 9.0.11

build(deps-dev): bump husky from 8.0.3 to 9.0.11 #9

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: 'Delete redundant deployments'
on:
pull_request:
types:
- closed
branches:
- main
jobs:
delete:
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == 'dval-in/dval-in' }}
permissions:
contents: read
deployments: write
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: 'Delete Cloudflare Pages deployments'
uses: unlike-ltd/github-actions-cloudflare-pages@fb5958dd486c5c2cb38b3a843e1efb160878060d #v1.3.2
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: 'build'
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: ${{ vars.CLOUDFLARE_PROJECT_NAME }} ${{ (github.ref == 'refs/heads/main' && '(Production)') || '(Preview)' }}