From 5b6b908d9d7103f466128fa3f23ec2f26e74da6d Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Thu, 29 Feb 2024 22:34:59 +0800 Subject: [PATCH] debug CI --- .github/workflows/doc_build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/doc_build.yml b/.github/workflows/doc_build.yml index a49faa72..991877a5 100644 --- a/.github/workflows/doc_build.yml +++ b/.github/workflows/doc_build.yml @@ -21,11 +21,12 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Set branch name + id: vars run: | if [[ "${{ github.event_name }}" == "pull_request" ]]; then - branch = ${{ github.event.pull_request.head.ref }} + echo ::set-output name=branch::${{ github.event.pull_request.head.ref }} else - branch = dev + echo ::set-output name=branch::${{ github.ref }} fi - name: Cancel Previous Runs @@ -42,7 +43,7 @@ jobs: - name: Checkout to source branch uses: actions/checkout@v2.4.0 with: - ref: $branch + ref: ${{ steps.vars.outputs.branch }} - name: Install Seispy run: |