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