prefapp / firestarter-workflows

Repository with all firestarter workflows
0 stars 0 forks source link

Check if an update is coming from a deleted file in workflow state-repo-analyze-changes #74

Closed jalvarezit closed 2 months ago

jalvarezit commented 2 months ago

Descripción

Cuando se analizan los ficheros actualizados en conjunto con dorny paths si hay un fichero que ha sido modificado da un error en el workflow.

Este comportamiento se puede ver en el siguiente error:

Error: ENOENT: no such file or directory, lstat 'sys_services/persistent-volumes/pro/.sops.yaml'
Error: Unhandled error: Error: ENOENT: no such file or directory, lstat 'sys_services/persistent-volumes/pro/.sops.yaml'
    at Object.lstatSync (node:fs:1633:25)
    at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:35424:16), <anonymous>:34:9)
    at Array.forEach (<anonymous>)
    at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:35424:16), <anonymous>:15:14)
    at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:35425:12)
    at main (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:35522:26)
    at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:35497:1
    at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:35553:3
    at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:35556:12)
    at Module._compile (node:internal/modules/cjs/loader:1358:14) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'lstat',
  path: 'sys_services/persistent-volumes/pro/.sops.yaml'

A continuación se ve el cambio realizado en dicho sys service:

image