From ceecfe4fcf57a8d726bca9546a842944b5d1862a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Fri, 2 Feb 2024 01:00:27 +0100 Subject: [PATCH 1/2] remove debug --- .github/workflows/diff.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.github/workflows/diff.yml b/.github/workflows/diff.yml index ad751b26..981cc11a 100644 --- a/.github/workflows/diff.yml +++ b/.github/workflows/diff.yml @@ -4,25 +4,6 @@ on: types: [created] jobs: - debug: - runs-on: ubuntu-latest - needs: [diff, generate, summary] - if: always() && (vars.ACTIONS_RUNNER_DEBUG || vars.ACTIONS_STEP_DEBUG ) - steps: - - name: echo needs - run: echo '${{ toJson(needs) }}' - - name: echo github - run: echo '${{ toJson(github) }}' - - name: echo pull request - run: echo '${{ github.event.issue.pull_request == 'true' }}' - - name: echo comment association - run: echo '${{ github.event.comment.author_association }} - ${{ github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' }}' - - name: echo comment body - run: echo '${{ contains(github.event.comment.body, '\n/ci') || startsWith(github.event.comment.body, '/ci') }}' - - name: echo generate diffs - run: echo '${{ needs.generate.outputs.diffs != '{}' && needs.generate.outputs.diffs != '[]' && needs.generate.outputs.diffs != '' }}' - - name: echo generate result - run: echo '${{ needs.generate.result == 'success' }}' generate: runs-on: ubuntu-latest outputs: From 63f5b658f91327231f2ee02b8a23773a7f661357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gardstr=C3=B6m?= Date: Fri, 2 Feb 2024 01:01:29 +0100 Subject: [PATCH 2/2] fix incorrect handling of checking for presence of newline --- .github/workflows/diff.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/diff.yml b/.github/workflows/diff.yml index 981cc11a..f1200e03 100644 --- a/.github/workflows/diff.yml +++ b/.github/workflows/diff.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest outputs: diffs: ${{ steps.regress-ci.outputs.diffs }} - if: github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && (contains(github.event.comment.body, '\n/ci') || startsWith(github.event.comment.body, '/ci')) + if: github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && (contains(toJson(github.event.comment.body), '\n/ci') || startsWith(github.event.comment.body, '/ci')) steps: - uses: actions/checkout@v4