Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit 1353ec5

Browse files
authored
fix: draft of PR checks for labels to ensure releases (#14)
* fix: validate PR for semver * fix: use auto for pr-checks * fix: gh actions Co-authored-by: Jan Soukup <[email protected]>
1 parent e188446 commit 1353ec5

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
File renamed without changes.

Diff for: .github/workflows/pr-check.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Check PR for word'
2+
on: [pull_request]
3+
4+
jobs:
5+
check_pr:
6+
runs-on: ubuntu-22.04
7+
strategy:
8+
matrix:
9+
node-version: [16.x]
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Use Node.js ${{ matrix.node-version }}
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: ${{ matrix.node-version }}
16+
cache: 'npm'
17+
- name: Install dependencies
18+
run: npm ci
19+
- uses: kceb/pull-request-url-action@v1
20+
id: pr-url
21+
- name: Validate SemVer
22+
run: npx auto pr-check --url ${{ steps.pr-url.outputs.url }}
23+
env:
24+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)