forked from quarkiverse/quarkus-qute-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request quarkiverse#51 from mcruzdev/issue-49
Add preview-teardown
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Surge.sh Preview Teardown | ||
|
||
on: | ||
pull_request_target: | ||
paths: | ||
- "*.adoc" | ||
types: [closed] | ||
|
||
jobs: | ||
preview-teardown: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Teardown surge preview | ||
id: deploy | ||
run: npx surge teardown https://quarkus-roq-preview-pr-${{ github.event.number }}.surge.sh --token ${{ secrets.SURGE_TOKEN }} | ||
- name: Update PR status comment | ||
uses: actions-cool/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: | | ||
🙈 The PR is closed and the preview is expired. | ||
<!-- Sticky Pull Request Comment --> | ||
body-include: "<!-- Sticky Pull Request Comment -->" | ||
number: ${{ github.event.number }} |
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