build: update gh actions

This commit is contained in:
Csaba Tuncsik 2023-06-19 10:02:54 +02:00
parent 9d4fa9ba6d
commit 0c2ee0197b
2 changed files with 1 additions and 10 deletions

View file

@ -44,7 +44,7 @@ const hasFunctionOrClass = async filePath => {
const program = async () => {
// Run a git command to get a list of all files in the commit
const changedFiles = await execAsync('git diff --name-only --diff-filter=d master...HEAD')
const changedFiles = await execAsync('git diff --name-only --diff-filter=d origin/master..HEAD')
.then(({stdout}) => stdout.trim().split('\n').filter(Boolean));
// Get all .spec.ts and .test.ts files from the packages

View file

@ -19,15 +19,6 @@ jobs:
with:
fetch-depth: 0
- name: Fetch origin/master
run: |
git fetch origin master:master
- name: Get changed files
id: getfile
run: |
echo "::set-output name=files::$(git diff --name-only master..${{ github.ref }})"
- name: Use Node.js
uses: actions/setup-node@v3
with: