-
-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
We tried to introduce TheAlgorithms/scripts/directory_md
into TheAlgorithms/Ruby with TheAlgorithms/Ruby#209, but after the merge it failed to run with the following error:
python: can't open file '/home/runner/work/Ruby/Ruby/build_directory_md.py': [Errno 2] No such file or directory
GitHub Action log
- https://github.com/TheAlgorithms/Ruby/actions/runs/5337370931/jobs/9673337632
- Excerpt:
# Build Directory step Run TheAlgorithms/scripts/directory_md@main with: language: Ruby working-directory: . filetypes: .rb branch-name: directory-update Run echo "/home/runner/work/_actions/TheAlgorithms/scripts/main/directory_md" >> $GITHUB_PATH echo "/home/runner/work/_actions/TheAlgorithms/scripts/main/directory_md" >> $GITHUB_PATH shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} Run actions/setup-python@v4 with: python-version: 3.x check-latest: false token: *** update-environment: true allow-prereleases: false Installed versions Successfully set up CPython (3.11.4) Run git config --global user.name github-actions[bot] git config --global user.name github-actions[bot] git config --global user.email 'github-actions@users.noreply.github.com' shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: pythonLocation: /opt/hostedtoolcache/Python/3.11.4/x64 PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.4/x64/lib/pkgconfig Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.4/x64 Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.4/x64 Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.4/x64 LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.4/x64/lib Run # If branch exists, change to that branch to prevent multiple committing/PR creation. # If branch exists, change to that branch to prevent multiple committing/PR creation. git checkout directory-update || true python build_directory_md.py Ruby . .rb > DIRECTORY.md shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: pythonLocation: /opt/hostedtoolcache/Python/3.11.4/x64 PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.4/x64/lib/pkgconfig Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.4/x64 Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.4/x64 Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.4/x64 LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.4/x64/lib error: pathspec 'directory-update' did not match any file(s) known to git python: can't open file '/home/runner/work/Ruby/Ruby/build_directory_md.py': [Errno 2] No such file or directory Error: Process completed with exit code 2.
After discussing this with @Panquesito7 in the PR, it seems that the GitHub Action needs to be modified, so I am reporting it here. Thanks!
Panquesito7
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working