From 6d49b4069e1f0f655631e5cf7f6437a646cc57f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 10 Nov 2022 10:48:51 +0100 Subject: [PATCH] Add or update pull request check on stabilization branch --- .github/workflows/pr-checks.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pr-checks.yaml diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml new file mode 100644 index 00000000..04bf068d --- /dev/null +++ b/.github/workflows/pr-checks.yaml @@ -0,0 +1,31 @@ +name: Pull request check + +on: + pull_request: + types: + - opened + - reopened + - labeled + - unlabeled + - edit + - synchronize + +env: + POETRY_DYNAMIC_VERSIONING_BYPASS: 0.0.0 + +jobs: + build: + name: Pull request check + runs-on: ubuntu-20.04 + timeout-minutes: 5 + + steps: + - uses: actions/checkout@v3 + + - run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} + - run: python3 -m pip install --user --pre c2cciutils[pr_checks] + + - name: Check pull request + run: c2cciutils-pull-request-checks + env: + GITHUB_EVENT: ${{ toJson(github) }}