tj-actions / changed-files

:octocat: Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
MIT License
1.85k stars 191 forks source link

[BUG] Action fails with Crypto is not defined #2326

Closed ajgerace closed 1 month ago

ajgerace commented 1 month ago

Is there an existing issue for this?

Does this issue exist in the latest version?

Describe the bug?

Creating a GITEA action using your action in attempt to track files that were added to a repo. When your action runs I'm receiving an error "::error::crypto is not defined".

To Reproduce

  1. create a repo
  2. create an action file with your action sample:

name: List changed files

  | on:   | push:   | branches:   | - main   |     | jobs:   | changed_files:   | runs-on: ubuntu-latest   | name: Test added-files   | steps:   | - uses: actions/checkout@v4   | with:   | fetch-depth: 0   | - id: changed-files   | name: Check changed files   | uses: tj-actions/changed-files@v45   | with:   | files: |   | **.txt

  1. add new file to repo
  2. when the action runs I receive error
  3. Output of action run ::group::changed-files Using local .git directory Running on a push event... Retrieving changes between 5b4334af522301674114cbb23f7199b9268e57f3 (main) → ba0fb119cc92a26f88281d2baad6104fe1788da1 (main) All Done! ::endgroup:: ::group::changed-files-patterns ::error::crypto is not defined

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-22.04

Expected behavior?

Receive list of files that changed in output variable

Relevant log output

Oct 21, 2024, 1:58 PM EDT
runner-20-109(version:v0.2.11) received task 76 of job 65, be triggered by event: push
Oct 21, 2024, 1:58 PM EDT
workflow prepared
Oct 21, 2024, 1:58 PM EDT
evaluating expression 'success()'
Oct 21, 2024, 1:58 PM EDT
expression 'success()' evaluated to '***'
Oct 21, 2024, 1:58 PM EDT
🚀  Start image=gitea/runner-images:ubuntu-latest
Oct 21, 2024, 1:58 PM EDT
  🐳  docker pull image=gitea/runner-images:ubuntu-latest platform= username= forcePull=false
Oct 21, 2024, 1:58 PM EDT
  🐳  docker pull gitea/runner-images:ubuntu-latest
Oct 21, 2024, 1:58 PM EDT
Image exists? ***
Oct 21, 2024, 1:58 PM EDT
Cleaning up network for job Test added-files, and network name is: GITEA-ACTIONS-TASK-76_WORKFLOW-List-changed-files_JOB-Test-added-files-changed_files-network
Oct 21, 2024, 1:58 PM EDT
  🐳  docker create image=gitea/runner-images:ubuntu-latest platform= entrypoint=["/bin/sleep" "10800"] cmd=[] network="GITEA-ACTIONS-TASK-76_WORKFLOW-List-changed-files_JOB-Test-added-files-changed_files-network"
Oct 21, 2024, 1:58 PM EDT
Created container name=GITEA-ACTIONS-TASK-76_WORKFLOW-List-changed-files_JOB-Test-added-files id=d5e286065b901d0b17ffd33ca3abcbaee3792c90ea881df1fd0b3b21f516d4fe from image gitea/runner-images:ubuntu-latest (platform: )
Oct 21, 2024, 1:58 PM EDT
ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
Oct 21, 2024, 1:58 PM EDT
  🐳  docker run image=gitea/runner-images:ubuntu-latest platform= entrypoint=["/bin/sleep" "10800"] cmd=[] network="GITEA-ACTIONS-TASK-76_WORKFLOW-List-changed-files_JOB-Test-added-files-changed_files-network"
Oct 21, 2024, 1:58 PM EDT
Starting container: d5e286065b901d0b17ffd33ca3abcbaee3792c90ea881df1fd0b3b21f516d4fe
Oct 21, 2024, 1:58 PM EDT
Started container: d5e286065b901d0b17ffd33ca3abcbaee3792c90ea881df1fd0b3b21f516d4fe
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/event.json len:4592
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/envs.txt len:0
Oct 21, 2024, 1:58 PM EDT
Extracting content to '/var/run/act/'
Oct 21, 2024, 1:58 PM EDT
  ☁  git clone 'https://github.com/actions/checkout' # ref=v4
Oct 21, 2024, 1:58 PM EDT
  cloning https://github.com/actions/checkout to /root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab
Oct 21, 2024, 1:58 PM EDT
Non-terminating error while running 'git clone': some refs were not updated
Oct 21, 2024, 1:58 PM EDT
  ☁  git clone 'https://github.com/tj-actions/changed-files' # ref=v45
Oct 21, 2024, 1:58 PM EDT
  cloning https://github.com/tj-actions/changed-files to /root/.cache/act/3e3c507dc4344e14a49cb41ed757e7b58a676e1b88457d31a42c70df762100ca
Oct 21, 2024, 1:58 PM EDT
Unable to pull refs/heads/v45: worktree contains unstaged changes
Oct 21, 2024, 1:58 PM EDT
Cloned https://github.com/tj-actions/changed-files to /root/.cache/act/3e3c507dc4344e14a49cb41ed757e7b58a676e1b88457d31a42c70df762100ca
Oct 21, 2024, 1:58 PM EDT
Checked out v45
Oct 21, 2024, 1:58 PM EDT
evaluating expression ''
Oct 21, 2024, 1:58 PM EDT
expression '' evaluated to '***'
Oct 21, 2024, 1:58 PM EDT
⭐ Run Main actions/checkout@v4
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/outputcmd.txt len:0
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/statecmd.txt len:0
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/pathcmd.txt len:0
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/envs.txt len:0
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/SUMMARY.md len:0
Oct 21, 2024, 1:58 PM EDT
Extracting content to '/var/run/act'
Oct 21, 2024, 1:58 PM EDT
expression '${{ github.repository }}' rewritten to 'format('{0}', github.repository)'
Oct 21, 2024, 1:58 PM EDT
evaluating expression 'format('{0}', github.repository)'
Oct 21, 2024, 1:58 PM EDT
expression 'format('{0}', github.repository)' evaluated to '%!t(string=gerace/test-repo)'
Oct 21, 2024, 1:58 PM EDT
expression '${{ github.token }}' rewritten to 'format('{0}', github.token)'
Oct 21, 2024, 1:58 PM EDT
evaluating expression 'format('{0}', github.token)'
Oct 21, 2024, 1:58 PM EDT
expression 'format('{0}', github.token)' evaluated to '%!t(string=***)'
Oct 21, 2024, 1:58 PM EDT
type=remote-action actionDir=/root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab actionPath= workdir=/workspace/gerace/test-repo actionCacheDir=/root/.cache/act actionName=c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab containerActionDir=/var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab
Oct 21, 2024, 1:58 PM EDT
/var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab
Oct 21, 2024, 1:58 PM EDT
  🐳  docker cp src=/root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/ dst=/var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/
Oct 21, 2024, 1:58 PM EDT
Writing tarball /tmp/act3611853229 from /root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/
Oct 21, 2024, 1:58 PM EDT
Stripping prefix:/root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/ src:/root/.cache/act/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/
Oct 21, 2024, 1:58 PM EDT
Extracting content from '/tmp/act3611853229' to '/var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/'
Oct 21, 2024, 1:58 PM EDT
executing remote job container: [node /var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/index.js]
Oct 21, 2024, 1:58 PM EDT
  🐳  docker exec cmd=[node /var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/index.js] user= workdir=
Oct 21, 2024, 1:58 PM EDT
Exec command '[node /var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/index.js]'
Oct 21, 2024, 1:58 PM EDT
Working directory '/workspace/gerace/test-repo'
Oct 21, 2024, 1:58 PM EDT
::add-matcher::/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/problem-matcher.json
actions/checkout@v4
0s
Oct 21, 2024, 1:58 PM EDT
::add-matcher::/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/problem-matcher.json
Oct 21, 2024, 1:58 PM EDT
Syncing repository: gerace/test-repo
Oct 21, 2024, 1:58 PM EDT
::group::Getting Git version info
Oct 21, 2024, 1:58 PM EDT
Working directory is '/workspace/gerace/test-repo'
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git version
Oct 21, 2024, 1:58 PM EDT
git version 2.45.2
Oct 21, 2024, 1:58 PM EDT
::endgroup::
Oct 21, 2024, 1:58 PM EDT
Temporarily overriding HOME='/tmp/922d867e-94f4-442a-8c2b-882df3ae7b03' before making global git config changes
Oct 21, 2024, 1:58 PM EDT
Adding repository directory to the temporary git global config as a safe directory
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --global --add safe.directory /workspace/gerace/test-repo
Oct 21, 2024, 1:58 PM EDT
Deleting the contents of '/workspace/gerace/test-repo'
Oct 21, 2024, 1:58 PM EDT
::group::Initializing the repository
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git init /workspace/gerace/test-repo
Oct 21, 2024, 1:58 PM EDT
hint: Using 'master' as the name for the initial branch. This default branch name
Oct 21, 2024, 1:58 PM EDT
hint: is subject to change. To configure the initial branch name to use in all
Oct 21, 2024, 1:58 PM EDT
hint: of your new repositories, which will suppress this warning, call:
Oct 21, 2024, 1:58 PM EDT
hint:
Oct 21, 2024, 1:58 PM EDT
hint:   git config --global init.defaultBranch <name>
Oct 21, 2024, 1:58 PM EDT
hint:
Oct 21, 2024, 1:58 PM EDT
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
Oct 21, 2024, 1:58 PM EDT
hint: 'development'. The just-created branch can be renamed via this command:
Oct 21, 2024, 1:58 PM EDT
hint:
Oct 21, 2024, 1:58 PM EDT
hint:   git branch -m <name>
Oct 21, 2024, 1:58 PM EDT
Initialized empty Git repository in /workspace/gerace/test-repo/.git/
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git remote add origin https://gitea1.f5demo.org/gerace/test-repo
Oct 21, 2024, 1:58 PM EDT
::endgroup::
Oct 21, 2024, 1:58 PM EDT
::group::Disabling automatic garbage collection
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --local gc.auto 0
Oct 21, 2024, 1:58 PM EDT
::endgroup::
Oct 21, 2024, 1:58 PM EDT
::group::Setting up auth
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/gitea1\.f5demo\.org\/\.extraheader
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/gitea1\.f5demo\.org\/\.extraheader' && git config --local --unset-all 'http.https://gitea1.f5demo.org/.extraheader' || :"
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --local http.https://gitea1.f5demo.org/.extraheader AUTHORIZATION: basic ***
Oct 21, 2024, 1:58 PM EDT
::endgroup::
Oct 21, 2024, 1:58 PM EDT
::group::Fetching the repository
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git -c protocol.version=2 fetch --prune --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
Oct 21, 2024, 1:58 PM EDT
From https://gitea1.f5demo.org/gerace/test-repo
Oct 21, 2024, 1:58 PM EDT
 * [new branch]      main       -> origin/main
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git branch --list --remote origin/main
Oct 21, 2024, 1:58 PM EDT
  origin/main
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git rev-parse refs/remotes/origin/main
Oct 21, 2024, 1:58 PM EDT
ba0fb119cc92a26f88281d2baad6104fe1788da1
Oct 21, 2024, 1:58 PM EDT
::endgroup::
Oct 21, 2024, 1:58 PM EDT
::group::Determining the checkout info
Oct 21, 2024, 1:58 PM EDT
::endgroup::
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git sparse-checkout disable
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
Oct 21, 2024, 1:58 PM EDT
::group::Checking out the ref
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
Oct 21, 2024, 1:58 PM EDT
Switched to a new branch 'main'
Oct 21, 2024, 1:58 PM EDT
branch 'main' set up to track 'origin/main'.
Oct 21, 2024, 1:58 PM EDT
::endgroup::
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git log -1 --format=%H
Oct 21, 2024, 1:58 PM EDT
ba0fb119cc92a26f88281d2baad6104fe1788da1
Oct 21, 2024, 1:58 PM EDT
::remove-matcher owner=checkout-git::
Check changed files
1s
Oct 21, 2024, 1:58 PM EDT
::group::changed-files
Oct 21, 2024, 1:58 PM EDT
Using local .git directory
Oct 21, 2024, 1:58 PM EDT
Running on a push event...
Oct 21, 2024, 1:58 PM EDT
Retrieving changes between 5b4334af522301674114cbb23f7199b9268e57f3 (main) → ba0fb119cc92a26f88281d2baad6104fe1788da1 (main)
Oct 21, 2024, 1:58 PM EDT
All Done!
Oct 21, 2024, 1:58 PM EDT
::endgroup::
Oct 21, 2024, 1:58 PM EDT
::group::changed-files-patterns
Oct 21, 2024, 1:58 PM EDT
::error::crypto is not defined
Run step if any file(s) have changed
0s
Complete job
2s
Oct 21, 2024, 1:58 PM EDT
evaluating expression 'always()'
Oct 21, 2024, 1:58 PM EDT
expression 'always()' evaluated to '***'
Oct 21, 2024, 1:58 PM EDT
⭐ Run Post actions/checkout@v4
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/outputcmd.txt len:0
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/statecmd.txt len:0
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/pathcmd.txt len:0
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/envs.txt len:0
Oct 21, 2024, 1:58 PM EDT
Writing entry to tarball workflow/SUMMARY.md len:0
Oct 21, 2024, 1:58 PM EDT
Extracting content to '/var/run/act'
Oct 21, 2024, 1:58 PM EDT
run post step for 'actions/checkout@v4'
Oct 21, 2024, 1:58 PM EDT
executing remote job container: [node /var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/index.js]
Oct 21, 2024, 1:58 PM EDT
  🐳  docker exec cmd=[node /var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/index.js] user= workdir=
Oct 21, 2024, 1:58 PM EDT
Exec command '[node /var/run/act/actions/c3fe249fe73091a17d6638fe1341e7bd0bcc3466ce52323c0688e83e2463a4ab/dist/index.js]'
Oct 21, 2024, 1:58 PM EDT
Working directory '/workspace/gerace/test-repo'
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git version
Oct 21, 2024, 1:58 PM EDT
git version 2.45.2
Oct 21, 2024, 1:58 PM EDT
***
Oct 21, 2024, 1:58 PM EDT
Copying '/root/.gitconfig' to '/tmp/3624e6c6-0ad2-49fe-af32-f0e1559f6fc6/.gitconfig'
Oct 21, 2024, 1:58 PM EDT
Temporarily overriding HOME='/tmp/3624e6c6-0ad2-49fe-af32-f0e1559f6fc6' before making global git config changes
Oct 21, 2024, 1:58 PM EDT
Adding repository directory to the temporary git global config as a safe directory
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --global --add safe.directory /workspace/gerace/test-repo
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/gitea1\.f5demo\.org\/\.extraheader
Oct 21, 2024, 1:58 PM EDT
http.https://gitea1.f5demo.org/.extraheader
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git config --local --unset-all http.https://gitea1.f5demo.org/.extraheader
Oct 21, 2024, 1:58 PM EDT
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/gitea1\.f5demo\.org\/\.extraheader' && git config --local --unset-all 'http.https://gitea1.f5demo.org/.extraheader' || :"
Oct 21, 2024, 1:58 PM EDT
  ✅  Success - Post actions/checkout@v4
Oct 21, 2024, 1:58 PM EDT
Cleaning up container for job Test added-files
Oct 21, 2024, 1:58 PM EDT
Removed container: d5e286065b901d0b17ffd33ca3abcbaee3792c90ea881df1fd0b3b21f516d4fe
Oct 21, 2024, 1:58 PM EDT
  🐳  docker volume rm GITEA-ACTIONS-TASK-76_WORKFLOW-List-changed-files_JOB-Test-added-files
Oct 21, 2024, 1:58 PM EDT
  🐳  docker volume rm GITEA-ACTIONS-TASK-76_WORKFLOW-List-changed-files_JOB-Test-added-files-env
Oct 21, 2024, 1:58 PM EDT
Cleaning up network for job Test added-files, and network name is: GITEA-ACTIONS-TASK-76_WORKFLOW-List-changed-files_JOB-Test-added-files-changed_files-network
Oct 21, 2024, 1:58 PM EDT
🏁  Job failed
Oct 21, 2024, 1:58 PM EDT
Job 'Test added-files' failed
Powered by Gitea
Version:
1.22.2
Page:
8ms
Template:
2ms

Has all relevant logs been included?

Anything else?

No response

Code of Conduct

tj-actions-bot commented 1 month ago

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

winsvega commented 1 month ago

extremely strange this bug. it does not happen on my colleague's setup. we have almost the same. just different ubuntu version and docker. and it throws me this error. seems to completely ignore any node version I set up in workflow.

jackton1 commented 1 month ago

@winsvega Where are you running the workflow? Are you running it locally using act?

winsvega commented 1 month ago

Yes. gh act He has the same but on ububtu 22.04 I am on 24.04. So, docker packages are slightly different. But what is the cause?

ajgerace commented 1 month ago

I'm am running locally - debian12 VM with docker.

On Tue, Oct 22, 2024 at 12:54 PM Tonye Jack @.***> wrote:

@winsvega https://github.com/winsvega Where are you running the workflow locally using act https://github.com/nektos/act?

— Reply to this email directly, view it on GitHub https://github.com/tj-actions/changed-files/issues/2326#issuecomment-2429789936, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3UGCMQSWCGV2XDJLEWXQLZ4Z7K7AVCNFSM6AAAAABQK4CQ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRZG44DSOJTGY . You are receiving this because you authored the thread.Message ID: @.***>

jackton1 commented 1 month ago

@winsvega @winsvega Based on the error, I'd suggest creating an issue in the act project since this action doesn't depend on the crypto package.

winsvega commented 1 month ago

Hmm, but what is so special about changed files action that triggers this bug. Since the error comes only if changed files action is activated

ajgerace commented 1 month ago

The weird thing is this worked 3 weeks ago. Now, it doesn't complete the changed-file-patterns group Is there any debug logging we can enable to see where it is failing with-in the action?

On Tue, Oct 22, 2024 at 5:07 PM winsvega @.***> wrote:

Hmm, but what is so special about changed files action that triggers this bug. Since the error comes only if changed files action is activated

— Reply to this email directly, view it on GitHub https://github.com/tj-actions/changed-files/issues/2326#issuecomment-2430289350, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3UGCJA2LUN62BJOUDV3BDZ425B3AVCNFSM6AAAAABQK4CQ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZQGI4DSMZVGA . You are receiving this because you authored the thread.Message ID: @.***>

mohit2152sharma commented 1 month ago

Tried with prior version, v44 and it worked. But with the latest release, it failed. (Running locally with act)

jackton1 commented 1 month ago

Hi @ajgerace, You can set ACTION_STEP_DEBUG to true to enable debug logging.

ajgerace commented 1 month ago

Yes I can try that. I too tried v44 and it is working.

On Sat, Oct 26, 2024 at 3:48 PM Tonye Jack @.***> wrote:

Hi @ajgerace https://github.com/ajgerace, You can set ACTION_STEP_DEBUG https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging to true to enable debug logging.

— Reply to this email directly, view it on GitHub https://github.com/tj-actions/changed-files/issues/2326#issuecomment-2439717318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3UGCKOUJ5YDS7YUUU3GHDZ5PW2LAVCNFSM6AAAAABQK4CQ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZG4YTOMZRHA . You are receiving this because you were mentioned.Message ID: @.***>

ajgerace commented 1 month ago

Here is the step logs ::group::changed-files 2 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-2Env: {%0A "GITHUB_REF_NAME": "main",%0A "GITHUB_REF": "refs/heads/main",%0A "GITHUB_WORKSPACE": "/workspace/gerace/test-repo"%0A} 3 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-3Inputs: {%0A "files": "",%0A "filesSeparator": "\n",%0A "filesFromSourceFile": "",%0A "filesFromSourceFileSeparator": "\n",%0A "filesYaml": "",%0A "filesYamlFromSourceFile": "",%0A "filesYamlFromSourceFileSeparator": "\n",%0A "filesIgnore": ".gitea/workflows/actions.yml",%0A "filesIgnoreSeparator": "\n",%0A "filesIgnoreFromSourceFile": "",%0A "filesIgnoreFromSourceFileSeparator": "\n",%0A "filesIgnoreYaml": "",%0A "filesIgnoreYamlFromSourceFile": "",%0A "filesIgnoreYamlFromSourceFileSeparator": "\n",%0A "failOnInitialDiffError": false,%0A "failOnSubmoduleDiffError": false,%0A "separator": " ",%0A "sha": "",%0A "baseSha": "",%0A "since": "",%0A "until": "",%0A "path": ".",%0A "quotepath": ,%0A "diffRelative": ,%0A "sinceLastRemoteCommit": false,%0A "recoverDeletedFiles": false,%0A "recoverDeletedFilesToDestination": "",%0A "recoverFiles": "",%0A "recoverFilesSeparator": "\n",%0A "recoverFilesIgnore": "",%0A "recoverFilesIgnoreSeparator": "\n",%0A "includeAllOldNewRenamedFiles": false,%0A "oldNewSeparator": ",",%0A "oldNewFilesSeparator": " ",%0A "skipInitialFetch": false,%0A "fetchAdditionalSubmoduleHistory": false,%0A "dirNamesDeletedFilesIncludeOnlyDeletedDirs": false,%0A "excludeSubmodules": false,%0A "usePosixPathSeparator": false,%0A "tagsPattern": "*",%0A "tagsIgnorePattern": "",%0A "dirNames": false,%0A "dirNamesExcludeCurrentDir": false,%0A "dirNamesIncludeFiles": "",%0A "dirNamesIncludeFilesSeparator": "\n",%0A "json": false,%0A "escapeJson": ,%0A "safeOutput": ,%0A "writeOutputFiles": false,%0A "outputDir": ".github/outputs",%0A "outputRenamedFilesAsDeletedAndAdded": false,%0A "token": "",%0A "apiUrl": "https://gitea1.f5demo.org/api/v1",%0A "negationPatternsFirst": false,%0A "useRestApi": false,%0A "fetchDepth": 25,%0A "fetchMissingHistoryMaxRetries": 20%0A} 4 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-4Working directory: /workspace/gerace/test-repo 5 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-5Has git directory: 6 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-6files ignore patterns: !.gitea/workflows/actions.yml 7 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-7Input file patterns: %0A!.gitea/workflows/actions.yml 8 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-8File patterns: !.gitea/workflows/actions.yml 9 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-9Yaml file patterns: {} 10 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-10Using local .git directory 11 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-11Running on a push event... 12 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-12Getting current SHA... 13 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-13Current SHA: 3840fa954dcd2d04dc81227ddc5bb6267c91a990 14 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-14Getting previous SHA... 15 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-15Getting previous SHA for last remote commit... 16 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-16Previous SHA: 0c261cbb13fc75b252a8e25fda8e2370fa1c8d4e 17 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-17Target branch: main 18 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-18Current branch: main 19 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-19Retrieving changes between 0c261cbb13fc75b252a8e25fda8e2370fa1c8d4e (main) → 3840fa954dcd2d04dc81227ddc5bb6267c91a990 (main) 20 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-20All diff files: {"A":[],"C":[],"D":["f5demo.org-02dec24.key"],"M":[],"R":[],"T":[],"U":[],"X":[]} 21 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-21All Done! 22 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-22 ::endgroup:: 23 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-23 ::group::changed-files-patterns 24 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-24All filtered diff files: {"A":[],"C":[],"D":["f5demo.org-02dec24.key"],"M":[],"R":[],"T":[],"U":[],"X":[]} 25 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-25Dir names include file patterns: [] 26 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-26Added files: {"paths":"","count":"0"} 27 https://gitea1.f5demo.org/gerace/test-repo/actions/runs/43#jobstep-2-27::error::crypto is not defined

On Sat, Oct 26, 2024 at 3:50 PM Anthony Gerace @.***> wrote:

Yes I can try that. I too tried v44 and it is working.

On Sat, Oct 26, 2024 at 3:48 PM Tonye Jack @.***> wrote:

Hi @ajgerace https://github.com/ajgerace, You can set ACTION_STEP_DEBUG https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging to true to enable debug logging.

— Reply to this email directly, view it on GitHub https://github.com/tj-actions/changed-files/issues/2326#issuecomment-2439717318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3UGCKOUJ5YDS7YUUU3GHDZ5PW2LAVCNFSM6AAAAABQK4CQ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZG4YTOMZRHA . You are receiving this because you were mentioned.Message ID: @.***>

jackton1 commented 1 month ago

What is the next step after the changed files action?

ajgerace commented 1 month ago

jobs: changed_files: runs-on: ubuntu-22.04 name: Test added-files steps:

On Sat, Oct 26, 2024 at 7:37 PM Tonye Jack @.***> wrote:

What is the next step after the changed files action?

— Reply to this email directly, view it on GitHub https://github.com/tj-actions/changed-files/issues/2326#issuecomment-2439768144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3UGCLP6VUFY6IW6L7KMA3Z5QRSPAVCNFSM6AAAAABQK4CQ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZG43DQMJUGQ . You are receiving this because you were mentioned.Message ID: @.***>

jackton1 commented 4 weeks ago

This log doesn't include the error or message from the next step

ajgerace commented 4 weeks ago

The error message happens at the end of Check changed files Line 27 - ::error::crypto is not defined

On Mon, Oct 28, 2024 at 9:27 AM Tonye Jack @.***> wrote:

This log doesn't include the error or message from the next step

— Reply to this email directly, view it on GitHub https://github.com/tj-actions/changed-files/issues/2326#issuecomment-2441590369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3UGCOCNFOAK67SZ64TUYDZ5Y3VDAVCNFSM6AAAAABQK4CQ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBRGU4TAMZWHE . You are receiving this because you were mentioned.Message ID: @.***>

ajgerace commented 4 weeks ago

[image: image.png]

On Mon, Oct 28, 2024 at 9:30 AM Anthony Gerace @.***> wrote:

The error message happens at the end of Check changed files Line 27 - ::error::crypto is not defined

On Mon, Oct 28, 2024 at 9:27 AM Tonye Jack @.***> wrote:

This log doesn't include the error or message from the next step

— Reply to this email directly, view it on GitHub https://github.com/tj-actions/changed-files/issues/2326#issuecomment-2441590369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3UGCOCNFOAK67SZ64TUYDZ5Y3VDAVCNFSM6AAAAABQK4CQ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBRGU4TAMZWHE . You are receiving this because you were mentioned.Message ID: @.***>