From ac26d10e1ff4ff8c3f96f50955e2cabedbb9e335 Mon Sep 17 00:00:00 2001 From: zernonia Date: Tue, 16 Jan 2024 22:49:49 +0800 Subject: [PATCH] chore: test pages action print out some info --- .github/workflows/publish.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index ff4ef797..f591d428 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -12,13 +12,13 @@ on: paths: - 'apps/www/**' pull_request_target: + branches: + - dev types: # When a created pull request from forked repo, it will be comment 'Should deploy to add label' - opened # When a labeled '🚀request-deploy' pull request from forked repo, it will be deploy to Cloudflare Pages - labeled - paths: - - 'apps/www/**' # Allows you to run this workflow manually from the Actions tab # eslint-disable-next-line yml/no-empty-mapping-value workflow_dispatch: @@ -56,6 +56,11 @@ jobs: ref: ${{ github.event.pull_request.head.ref || github.ref }} fetch-depth: 0 + - name: Print pull request head information + run: | + echo "Pull Request SHA: ${{ github.event.pull_request.head.sha }}" + echo "Pull Request Ref: ${{ github.event.pull_request.head.ref }}" + # Run a build step here - name: Setup Node.js environment uses: actions/setup-node@v2