diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index 97b15265..34131c57 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -1,4 +1,4 @@ -name: Required label +name: Pull request check on: pull_request: @@ -10,13 +10,22 @@ on: jobs: build: - name: Required label + name: Pull request check runs-on: ubuntu-20.04 timeout-minutes: 5 steps: - uses: actions/checkout@v3 + - run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} + - uses: yashhy/pr-label-check-and-comment-action@master with: required_labels: enhancement, bug, refactor, documentation, chore, dependencies GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: github.actor != 'renovate[bot]' + + # Do spell on pull request title + - run: python3 -m pip install --user codespell + - run: jq -r '.pull_request.title' ${GITHUB_EVENT_PATH} > pull-request-title + # --ignore-words=spell-ignore-words.txt + - run: codespell pull-request-title