mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 09:15:11 +08:00
chore: pull check
This commit is contained in:
14
.github/workflows/pull_request_check.yml
vendored
14
.github/workflows/pull_request_check.yml
vendored
@@ -14,16 +14,22 @@ jobs:
|
||||
- name: Get changed files
|
||||
id: changed_files
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files: |
|
||||
src/apps/*.ts
|
||||
src/categories.ts
|
||||
src/globalGroups.ts
|
||||
src/subscription.ts
|
||||
|
||||
- name: Check changed files
|
||||
run: |
|
||||
if [ ${{ steps.changed_files.outputs.all_changed_files_count }} -ne 1 ]; then
|
||||
echo "your changed files count must be 1"
|
||||
exit 1
|
||||
fi
|
||||
for file in ${{ steps.changed_files.outputs.all_changed_files }}; do
|
||||
echo "$file was changed"
|
||||
done
|
||||
if [ ${{ steps.changed_files.outputs.all_changed_files_count }} -gt 1 ]; then
|
||||
echo "your src subscription changed files count must <= 1"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user