mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-14 20:17:19 +00:00
Merge branch 'main' into patch-11
This commit is contained in:
2 files changed
+10
-3
No files matched your search
@@ -39,14 +39,21 @@ jobs:
|
|||||||
- run: npm install
|
- run: npm install
|
||||||
|
|
||||||
- name: Get modified files
|
- name: Get modified files
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
id: files
|
id: files
|
||||||
run: |
|
run: |
|
||||||
echo "changed_files=$(git diff --name-only HEAD~1 HEAD | xargs)" >> $GITHUB_OUTPUT
|
echo "changed_files=$(git diff --name-only HEAD~1 HEAD | xargs)" >> $GITHUB_OUTPUT
|
||||||
echo $changed_files
|
echo $changed_files
|
||||||
|
|
||||||
|
- name: Get all modified domain JSON files
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
id: changed-files
|
||||||
|
uses: tj-actions/changed-files@v45
|
||||||
|
with:
|
||||||
|
files: domains/*.json
|
||||||
|
|
||||||
- run: npm test
|
- run: npm test
|
||||||
env:
|
env:
|
||||||
EVENT: ${{ github.event_name }}
|
EVENT: ${{ github.event_name }}
|
||||||
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
|
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
|
||||||
MODIFIED_FILES: ${{ steps.files.outputs.changed_files || '' }}
|
MODIFIED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
+1
-1
@@ -3,7 +3,7 @@ const fs = require("fs-extra");
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
const PR_AUTHOR = process.env.PR_AUTHOR;
|
const PR_AUTHOR = process.env.PR_AUTHOR;
|
||||||
const MODIFIED_FILES = process.env.MODIFIED_FILES.split(",");
|
const MODIFIED_FILES = process.env.MODIFIED_FILES.split("\n");
|
||||||
|
|
||||||
const domainsPath = path.resolve("domains");
|
const domainsPath = path.resolve("domains");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user