From 05de77698ce24ebf5260c7a7b411f6c802e64552 Mon Sep 17 00:00:00 2001 From: Rachel Powers <508861+Ryex@users.noreply.github.com> Date: Mon, 22 Apr 2024 15:06:48 -0700 Subject: [PATCH] add status check to preview deploy Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> --- .github/workflows/devlop-deploy-netlify.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/devlop-deploy-netlify.yml b/.github/workflows/devlop-deploy-netlify.yml index 15f3207..ce6438d 100644 --- a/.github/workflows/devlop-deploy-netlify.yml +++ b/.github/workflows/devlop-deploy-netlify.yml @@ -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 }}