From e96b0219a137b73e13c622e743ec7f7304ba5285 Mon Sep 17 00:00:00 2001 From: SidStraw Date: Mon, 29 Aug 2022 18:08:48 +0800 Subject: [PATCH] ci: add Cloudflare Pages Deployed --- .github/workflows/checkrun-completed.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/checkrun-completed.yml diff --git a/.github/workflows/checkrun-completed.yml b/.github/workflows/checkrun-completed.yml new file mode 100644 index 0000000..b61c04f --- /dev/null +++ b/.github/workflows/checkrun-completed.yml @@ -0,0 +1,17 @@ +name: Cloudflare Pages Deployed + +on: + check_run: + types: [completed] + +jobs: + build: + name: Test + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - run: echo "${{ github.event.check_run }}" + - name: Get Deployment URL + run: echo "DEPLOYMENT_URL=$(echo "${{ github.event.check_run.output.summary }}" | grep -o "href\=.*>https" | cut -c 7-43)" >> $GITHUB_ENV + - run: echo $DEPLOYMENT_URL