diff --git a/.github/workflows/deployonly.yml b/.github/workflows/deployonly.yml index eaef8a1..490f30b 100644 --- a/.github/workflows/deployonly.yml +++ b/.github/workflows/deployonly.yml @@ -35,5 +35,7 @@ jobs: dist: html # NOTE: matchupload_artifact name: html failOnError: true - - name: Get the preview_url - run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" + - name: Format preview url + id: format_url + run: | + echo "url_text=:rocket: Preview deployed at https://${{ steps.preview_step.outputs.preview_url }}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/removepreview.yml b/.github/workflows/removepreview.yml index d4fda66..c9e5caf 100644 --- a/.github/workflows/removepreview.yml +++ b/.github/workflows/removepreview.yml @@ -1,11 +1,12 @@ -name: PR Build +name: PR Teardown on: pull_request_target: types: [closed] jobs: - teardown: + # NOTE: jobname must match deployonly.yml + preview: runs-on: ubuntu-latest steps: - name: Remove Surge.sh PR Preview