diff --git a/.github/workflows/test-linux-docs.yml b/.github/workflows/test-linux-docs.yml new file mode 100644 index 000000000..93d77ebdc --- /dev/null +++ b/.github/workflows/test-linux-docs.yml @@ -0,0 +1,33 @@ +# This workflow sets the 'test-linux / pack' and 'test-linux / tests' status check to success in case it's a docs only PR and test-linux.yml is not triggered +# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks +name: test-linux # The name must be the same as in test-linux.yml + +on: + pull_request: + paths-ignore: # This expression needs to match the paths ignored on test-linux.yml. + - '**' + - '!**/*.md' + - '!**/*.asciidoc' + - '!docs/**' + +permissions: + contents: read + +## Concurrency only allowed in the main branch. +## So old builds running for old commits within the same Pull Request are cancelled +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + +jobs: + # dummy steps that allow to bypass those mandatory checks for tests + pack: + runs-on: ubuntu-latest + steps: + - run: 'echo "Not required for docs"' + + # dummy steps that allow to bypass those mandatory checks for tests + tests: + runs-on: ubuntu-latest + steps: + - run: 'echo "Not required for docs"' diff --git a/.github/workflows/test-windows-docs.yml b/.github/workflows/test-windows-docs.yml new file mode 100644 index 000000000..d6ae19015 --- /dev/null +++ b/.github/workflows/test-windows-docs.yml @@ -0,0 +1,28 @@ +# This workflow sets the 'test-windows / tests' status check to success in case it's a docs only PR and test-windows.yml is not triggered +# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks +name: test-windows # The name must be the same as in test-windows.yml + +on: + pull_request: + paths-ignore: # This expression needs to match the paths ignored on test-windows.yml. + - '**' + - '!**/*.md' + - '!**/*.asciidoc' + - '!docs/**' + +permissions: + contents: read + +## Concurrency only allowed in the main branch. +## So old builds running for old commits within the same Pull Request are cancelled +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + +jobs: + + # dummy steps that allow to bypass those mandatory checks for tests + tests: + runs-on: ubuntu-latest + steps: + - run: 'echo "Not required for docs"'