From fc86776b0094cd6cd8a68e18f06653811a69a936 Mon Sep 17 00:00:00 2001 From: SharzyL Date: Tue, 16 Apr 2024 19:34:08 +0800 Subject: [PATCH] fix[ci]: use fully-formed ref --- .github/workflows/pr.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ccb4b04..6373fa3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -7,9 +7,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - branch: - - ${{ github.head_ref }} - - "goshujin" + include: + - ref: ${{ github.ref }} + name: "head" + - ref: "goshujin" + name: "goshujin" permissions: contents: read @@ -17,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ matrix.branch }} + ref: ${{ matrix.ref }} - name: "Install Node" uses: actions/setup-node@v4 @@ -34,7 +36,7 @@ jobs: - name: "Upload Coverage" uses: actions/upload-artifact@v4 with: - name: coverage-${{ matrix.branch }} + name: coverage-${{ matrix.name }} path: coverage report-coverage: @@ -46,7 +48,7 @@ jobs: - name: "Download HEAD coverage artifacts" uses: actions/download-artifact@v4 with: - name: coverage-${{ github.head_ref }} + name: coverage-head path: coverage - name: "Download goshujin coverage artifacts"