Skip to content

Commit

Permalink
change action
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyor committed Apr 9, 2024
1 parent b1ae3d1 commit 78c9172
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '2'
- name: Check for automated commit 1
run: echo $(git diff-tree --no-commit-id --name-only -r HEAD)
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
Expand All @@ -32,7 +31,7 @@ jobs:
const { execSync } = require('child_process')
const { commits } = context.payload.pull_request
console.log(commits)
const rawFiles = execSync(`git diff-tree --no-commit-id --name-only -r HEAD`).toString()
const rawFiles = execSync(`git diff --name-only HEAD HEAD~${commits}`).toString()
console.log('rawFiles', rawFiles)
const files = rawFiles.split('\n').filter(Boolean)
Expand Down

0 comments on commit 78c9172

Please sign in to comment.