1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-11 23:36:05 +00:00

Adds a custom action to check the target branch (#9046)

* ci: added cerebrus action to validate files in PRs based on the target branch

* fix: reflect move of action repo to TW org

* use cerebrus v2

* fix: use pull_request_target to enable write access
This commit is contained in:
Saq Imtiaz
2025-05-04 16:22:00 +02:00
committed by GitHub
parent 4060f762e0
commit 5e8d6fb790

View File

@@ -0,0 +1,18 @@
name: Validate PR Paths
on:
pull_request_target:
types: [opened, reopened, synchronize]
jobs:
validate-pr:
runs-on: ubuntu-latest
steps:
- name: Validate PR
uses: TiddlyWiki/cerebrus@v2
with:
pr_number: ${{ github.event.pull_request.number }}
repo: ${{ github.repository }}
base_ref: ${{ github.base_ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}