Bump simple-keyboard from 3.8.14 to 3.8.15 #221
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |