Skip to content

Commit cbb0f10

Browse files
committed
NO MESSAGE SET
1 parent d434625 commit cbb0f10

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: CI
66
on:
77
# Triggers the workflow on push or pull request events but only for the "main" branch
88
push:
9-
branches: [ "main" ]
9+
branches: ["main"]
1010
pull_request:
11-
branches: [ "main" ]
11+
branches: ["main"]
1212

1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
@@ -24,6 +24,14 @@ jobs:
2424
steps:
2525
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2626
- uses: actions/checkout@v4
27+
with:
28+
script: |
29+
const { execSync } = require('child_process')
30+
const { commits } = context.payload.pull_request
31+
const rawFiles = execSync(`git diff --name-only HEAD HEAD~${commits}`).toString()
32+
const files = rawFiles.split('\n').filter(Boolean)
33+
34+
console.log(files)
2735
2836
# Runs a set of commands using the runners shell
2937
- name: Run a multi-line script
-1.06 KB
Binary file not shown.

0 commit comments

Comments
 (0)