Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the problem with running in a container workflow #39

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

joshua-clayton
Copy link

cocogitto-action breaks when running in a container

This PR adds a container test (which will fail on main) and a fix

Assuming the container has git, curl and tar, (and is compatible with the architecture), cocogitto-action should work
on any debian based runner or container

verify whether cocogitto-action can work when run in a container
Use the github runner base image, which is the
same as the github hosted  ubuntu-latest
${{github.action_path}} is not compatible with container based actions.
${{github.workspacei}} suffers from the same defect, and it is unlikely that
 github is going to fix it, as it has been a known issue for a long time.
See actions/checkout#785

The solution is to use ${{env.GITHUB_ACTION_PATH}} instead, or inside
a run context, just $GITHUB_ACTION_PATH
Copy link

cocogitto-bot bot commented Feb 20, 2025

✔️ 4994faa...19ec0ab - Conventional commits check succeeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant