Add nuxt #167
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: Cleanup PR preview | |
# Default to bash | |
defaults: | |
run: | |
shell: bash | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
cleanup_preview: | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
name: Cleanup Preview | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- uses: Genez-io/genezio-github-action@v2 | |
with: | |
token: ${{ secrets.GENEZIO_TOKEN }} | |
- name: Compute stage | |
run: echo "STAGE=pr-$(echo -n ${{ github.head_ref }} | shasum | head -c 8)" >> $GITHUB_ENV | |
- name: Cleanup Preview | |
run: genezio delete $PROJECT_ID --stage $STAGE --force | |
env: | |
PROJECT_ID: 05d555b1-e5a0-45d0-b4a2-9a4f7b2da92a |