mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #1826] actions/checkout: Git hangs in job waiting for username input #889
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#889
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @deliciouslytyped on GitHub (May 28, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1826
Act info:
I'm learning github actions, and I'm developing the below yml to merge one branch to another.
When I run with
act -v -s GITHUB_TOKEN=$GITHUB_TOKEN, it hangs.Using
docker -it exec containername /bin/sh, I can get a shell, and inspect /proc/environ of the hanginggit fetchprocess.After copying that environ to the current shell (with some small errors) using
source <(cat /proc/thepid/environ | tr '\0' '\n'), I then rungit fetch.The "hang" seems to happen because its waiting for input:
Given that I based this off of https://medium.com/@karlstad/create-a-github-actions-workflow-that-auto-merges-the-master-back-to-dev-branch-8b1ebe7009b3 , I'm inclined to think the problem is some sort of difference between the
actand the github actions environments? Or I'm missing something simple.GITHUB_REPOSITORY_OWNER is set for example.
The working directory is the directory I ran
actin, and it has the dirty git repo.It's a bit of an open question whether I want this to work on the local or remote repository (well, for testing I guess local makes sense). However, as it is, this doesn't do either.
@github-actions[bot] commented on GitHub (Nov 25, 2023):
Issue is stale and will be closed in 14 days unless there is new activity
@real-zony commented on GitHub (Dec 7, 2023):
I think I've encountered the same issue. Here is my workflow, and it also gets stuck.
I believe this issue might be related to #977.
@github-actions[bot] commented on GitHub (Jun 5, 2024):
Issue is stale and will be closed in 14 days unless there is new activity
@deliciouslytyped commented on GitHub (Jun 7, 2024):
Probably still broken, didn't test.
@github-actions[bot] commented on GitHub (Dec 5, 2024):
Issue is stale and will be closed in 14 days unless there is new activity