add status check to preview deploy

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2024-04-22 15:06:48 -07:00
parent e6b8f20c81
commit 05de77698c

View File

@@ -4,6 +4,13 @@ on:
branches:
- develop
- "!main"
permissions:
contents: read
packages: read
checks: write
statuses: write
jobs:
build:
runs-on: ubuntu-latest
@@ -47,3 +54,10 @@ jobs:
install_command: "echo Skipping installing the dependencies"
build_command: "echo Skipping building the web files"
build_directory: www/dist
- name: Status check
uses: Sibz/github-status-action@v1.1.1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: Netlify preview
state: success
target_url: ${{ env.NETLIFY_PREVIEW_URL }}