Skip to content

Bump simple-keyboard from 3.8.4 to 3.8.5 #176

Bump simple-keyboard from 3.8.4 to 3.8.5

Bump simple-keyboard from 3.8.4 to 3.8.5 #176

name: PR Compliance
on: pull_request_target
jobs:
build:
runs-on: ${{ matrix.os }}
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/github-script@v6
with:
script: |
const { execSync } = require('child_process')
const { commits, number } = context.payload.pull_request
const files = execSync(`gh pr view ${number} --json files -q '.files[].path'`).toString()
if(files.includes("lib/layouts") || files.includes("build/layouts")){
throw "Changes to layouts are not allowed."
}
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Comment PR
if: success()
uses: thollander/actions-comment-pull-request@v2
with:
message: |
:wave: Hello @${{ github.actor }}! Please make sure to review the [Contributing Guidelines](https://github.com/simple-keyboard/simple-keyboard-layouts/blob/master/CONTRIBUTING.md) to ensure your PR is compliant. Thank you!
reactions: eyes
comment_tag: compliance
- name: Reject PR
if: failure()
uses: peter-evans/close-pull@v1
with:
pull-request-number: ${{github.event.number}}
comment: "Thank you for contribution, but we are no longer accepting new or edited layouts. Please file an issue if you find a bug in the existing layouts."
delete-branch: false