From 8d8e807d372f1ab3929aa5788036dbe55bf2df25 Mon Sep 17 00:00:00 2001 From: tsyirvo Date: Wed, 17 Apr 2024 17:01:50 +0200 Subject: [PATCH] feat: tweak the workflow --- .github/workflows/quality.yml | 48 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index c30d2458..f8d612b8 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -12,36 +12,36 @@ jobs: set-pr-data: name: Check the PR state then set required outputs runs-on: ubuntu-latest - env: - GH_TOKEN: ${{ github.token }} - outputs: - base_ref: ${{ steps.setting.outputs.base_ref }} - head_ref: ${{ steps.setting.outputs.head_ref }} - pr_number: ${{ steps.setting.outputs.pr_number }} - is_draft: ${{ steps.setting.outputs.is_draft }} + # env: + # GH_TOKEN: ${{ github.token }} + # outputs: + # base_ref: ${{ steps.setting.outputs.base_ref }} + # head_ref: ${{ steps.setting.outputs.head_ref }} + # pr_number: ${{ steps.setting.outputs.pr_number }} + # is_draft: ${{ steps.setting.outputs.is_draft }} - steps: - - uses: actions/checkout@v3 + # steps: + # - uses: actions/checkout@v3 - - name: Checking the PR state - id: pr - run: | - echo "state=$(gh pr view --json state | jq -r '.state')" >> $GITHUB_OUTPUT + # - name: Checking the PR state + # id: pr + # run: | + # echo "state=$(gh pr view --json state | jq -r '.state')" >> $GITHUB_OUTPUT - - name: Setting outputs - if: steps.pr.outputs.state == 'OPEN' - id: setting - run: | - echo "base_ref=$(gh pr view --json baseRefName | jq -r '.baseRefName')" >> $GITHUB_OUTPUT - echo "head_ref=$(gh pr view --json headRefName | jq -r '.headRefName')" >> $GITHUB_OUTPUT - echo "pr_number=$(gh pr view --json number | jq -r '.number')" >> $GITHUB_OUTPUT - echo "is_draft=$(gh pr view --json isDraft | jq -r '.isDraft')" >> $GITHUB_OUTPUT + # - name: Setting outputs + # if: steps.pr.outputs.state == 'OPEN' + # id: setting + # run: | + # echo "base_ref=$(gh pr view --json baseRefName | jq -r '.baseRefName')" >> $GITHUB_OUTPUT + # echo "head_ref=$(gh pr view --json headRefName | jq -r '.headRefName')" >> $GITHUB_OUTPUT + # echo "pr_number=$(gh pr view --json number | jq -r '.number')" >> $GITHUB_OUTPUT + # echo "is_draft=$(gh pr view --json isDraft | jq -r '.isDraft')" >> $GITHUB_OUTPUT quality: - needs: set-pr-data + # needs: set-pr-data runs-on: ubuntu-latest - if: | - needs.set-pr-data.outputs.is_draft == 'false' + # if: | + # needs.set-pr-data.outputs.is_draft == 'false' steps: - name: Checkout repo