Skip to content

Commit

Permalink
fix: draft of PR checks for labels to ensure releases (#14)
Browse files Browse the repository at this point in the history
* fix: validate PR for semver

* fix: use auto for pr-checks

* fix: gh actions

Co-authored-by: Jan Soukup <soukup@u.plus>
sladg and sladg authored Aug 22, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e188446 commit 1353ec5
Showing 2 changed files with 24 additions and 0 deletions.
File renamed without changes.
24 changes: 24 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Check PR for word'
on: [pull_request]

jobs:
check_pr:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- uses: kceb/pull-request-url-action@v1
id: pr-url
- name: Validate SemVer
run: npx auto pr-check --url ${{ steps.pr-url.outputs.url }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1353ec5

Please sign in to comment.