From 9d7ba36942c8f59ccd87c8e2d4c4ca65d018bdff Mon Sep 17 00:00:00 2001 From: Kin Fei Lee Date: Sat, 23 Dec 2023 20:39:59 +0800 Subject: [PATCH] ci: use $GITHUB_OUTPUT --- .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 bbbda31..6f2e345 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_OUTPUT else echo "Proceeding with the job." - echo "skip_ci=false" >> "$GITHUB_STATE" + echo "skip_ci=false" >> $GITHUB_OUTPUT fi - name: Checkout code and Use Node.js - if: ${{ "$skip_ci" == "false" }} + if: ${{ $GITHUB_OUTPUT == "false" }} uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - if: ${{ "$skip_ci" == "false" }} + if: ${{ $GITHUB_OUTPUT == "false" }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install dependencies - if: ${{ "$skip_ci" == "false" }} + if: ${{ $GITHUB_OUTPUT == "false" }} run: yarn install - name: Lint - if: ${{ "$skip_ci" == "false" }} + if: ${{ $GITHUB_OUTPUT == "false" }} run: yarn lint - name: Test and Coverage - if: ${{ "$skip_ci" == "false" }} + if: ${{ $GITHUB_OUTPUT == "false" }} run: yarn test:coverage