From dbda6624e61e956d0141e807237713227f144625 Mon Sep 17 00:00:00 2001 From: Kin Fei Lee Date: Sat, 23 Dec 2023 20:35:11 +0800 Subject: [PATCH] ci: fix ci --- .github/workflows/pipeline.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 450656d..bbbda31 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -16,30 +16,30 @@ jobs: run: | if [ "${{ github.event_name }}" == 'push' ] && [ "${{ github.repository }}" != "${{ github.actor }}/express-api-template" ]; then echo "Stopping job because it's a repository creation event." - echo "skip_ci=true" >> $GITHUB_STATE + echo "skip_ci=true" >> "$GITHUB_STATE" else echo "Proceeding with the job." - echo "skip_ci=false" >> $GITHUB_STATE + echo "skip_ci=false" >> "$GITHUB_STATE" fi - name: Checkout code and Use Node.js - if: ${{ skip_ci == 'false' }} + if: ${{ "$skip_ci" == "false" }} uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - if: ${{ skip_ci == 'false' }} + if: ${{ "$skip_ci" == "false" }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install dependencies - if: ${{ skip_ci == 'false' }} + if: ${{ "$skip_ci" == "false" }} run: yarn install - name: Lint - if: ${{ skip_ci == 'false' }} + if: ${{ "$skip_ci" == "false" }} run: yarn lint - name: Test and Coverage - if: ${{ skip_ci == 'false' }} + if: ${{ "$skip_ci" == "false" }} run: yarn test:coverage