Skip to content

Commit

Permalink
Logging in ignore script
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Dorofeev committed Jul 16, 2024
1 parent b7ad1dd commit aab06e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ignore-builds-master.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { execSync } from 'child_process'

console.info('Running ignore script')

const cachedCommitRef =
process.env.CACHED_COMMIT_REF || 'd06423d365fa9cf3ef99a8653abbf1a83fe7d3bb'
const commitRef = process.env.COMMIT_REF || 'HEAD'
Expand All @@ -8,6 +10,9 @@ const changesList = execSync(
`git diff --name-only ${cachedCommitRef} ${commitRef}`
).toString()

console.info('Changes list:')
console.info(changesList)

class Changed {
constructor({ src = false, deps = false }) {
this.src = src
Expand Down

0 comments on commit aab06e7

Please sign in to comment.