From 58dfcf43148153922a2ba627fa0c233a0c64e647 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Fri, 4 Mar 2022 16:16:37 +0900 Subject: [PATCH] Skip test-docs job when PR contains release-notes label The label is used only for release notes that don't require tests. Another docs-checks job to verify "trino-docs" module would still run. --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 281b69afb5b7..4d4fa5753100 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -60,7 +60,7 @@ jobs: test-docs: needs: path-filters - if: ${{ needs.path-filters.outputs.docs == 'true' && needs.path-filters.outputs.other == 'false' }} + if: ${{ needs.path-filters.outputs.docs == 'true' && needs.path-filters.outputs.other == 'false' && !contains(github.event.pull_request.labels.*.name, 'release-notes') }} runs-on: ubuntu-latest strategy: fail-fast: false