diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 6f2e345..a24534e 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -12,34 +12,33 @@ jobs: steps: - name: Check if it's a repository creation event - id: set-status 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_OUTPUT + echo "skip_ci=true" >> skip_ci else echo "Proceeding with the job." - echo "skip_ci=false" >> $GITHUB_OUTPUT + echo "skip_ci=false" >> skip_ci fi - name: Checkout code and Use Node.js - if: ${{ $GITHUB_OUTPUT == "false" }} + if: ${{ skip_ci == "false" }} uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - if: ${{ $GITHUB_OUTPUT == "false" }} + if: ${{ skip_ci == "false" }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install dependencies - if: ${{ $GITHUB_OUTPUT == "false" }} + if: ${{ skip_ci == "false" }} run: yarn install - name: Lint - if: ${{ $GITHUB_OUTPUT == "false" }} + if: ${{ skip_ci == "false" }} run: yarn lint - name: Test and Coverage - if: ${{ $GITHUB_OUTPUT == "false" }} + if: ${{ skip_ci == "false" }} run: yarn test:coverage