chore: update react swipeable #753
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: Unassign preview-domain | |
on: | |
# Trigger when a pull request is closed | |
pull_request: | |
types: [closed] | |
permissions: | |
contents: read | |
jobs: | |
unassign-preview-domain: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Prepare domain | |
id: prepare | |
uses: actions/[email protected] | |
with: | |
script: | | |
const subdomain = `${{ github.head_ref }}`.slice(0, 32) | |
const domain = `${subdomain}.${{ vars.PREVIEW_DOMAIN }}`.toLowerCase().replaceAll("_","-") | |
core.setOutput('domain', domain) | |
- name: Unssign preview-domain | |
run: | | |
curl -sX DELETE "https://vercel.com/api/v10/projects/${{ secrets.VERCEL_PROJECT_ID }}/domains/${{ steps.prepare.outputs.domain }}?teamId=${{ secrets.VERCEL_TEAM_ID }}" \ | |
-H "Authorization: Bearer ${{ secrets.VERCEL_BEARER_TOKEN }}" \ | |
-H "Content-Type: application/json" |