From e96b197d4ddfd4357b3f01a801858df4f69dec74 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 22 Jun 2022 17:29:32 +0200 Subject: [PATCH] ci: Don't mark Docs CI job as failed when deploying the preview fails --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b9b5987..ad5642d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -251,7 +251,9 @@ jobs: run: target/debug/xtask doc --deny-warnings - name: Deploy PR preview + id: deploy_preview if: github.event_name == 'pull_request' + continue-on-error: true uses: dswistowski/surge-sh-action@v1.0.1 with: domain: pr-${{ github.event.number }}--ruma-docs.surge.sh @@ -260,7 +262,7 @@ jobs: token: ${{ secrets.SURGE_TOKEN }} - name: Comment deploy PR preview URL - if: github.event_name == 'pull_request' + if: steps.deploy_preview.outcome == 'success' uses: Beakyn/gha-comment-pull-request@v1.0.2 env: GITHUB_TOKEN: ${{ github.token }}