Not support uses an action in the root directory #512
Labels
No Label
kind
bug
kind
build
kind/compatible
kind
dependencies
kind
docs
kind
enhancement
kind
feature
kind
help wanted
kind
proposal
kind
refactor
related
act
related
environment
related
exec
related
gitea
related
workflow
reviewed
confirmed
reviewed
duplicate
reviewed
invalid
reviewed
needs feedback
reviewed
wontfix
reviewed
workaround
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/act_runner#512
Loading…
Reference in New Issue
Block a user
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?
The config like this is not work:
https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#example-using-a-private-action
Did you checkout the repository?
@Zettat123 Yes, the sample code has been streamlined.
There is an error:
This is weird. I tested the sample code and found it works as expected. Is your workflow file different from the sample code?
@Zettat123 My Runner version is 0.2.6, gitea version is 1.21.7
The code is like the github page:
action.yml
gitea.yml
action's
index.js
The error:
I didn't find anything incorrect in these files.
Could you add
- run: ls -al
to the workflow file to check ifaction.yml
exists?The action should work if
action.yml
exists@PittyXu Can you find text like
file does not exist
in your act_runner's logs? Or can you provide the full log of act_runner if possible?Sorry I didn't make it clear. Looks like the logs you provided are from the UI. Since not all logs from act_runner are displayed on the UI, some information may be missed.
Could you provide the logs that the act_runner printed to the console? (Before you post the logs, you can remove the sensitive information)
I tested the
ls -Ral /var/run/act
command and found the result was similar to yours. Since I didn't encounter any error, I think it's not becauseExtracting content to '/var/run/act'
.I noticed the
file does not exist
error in your logs. This means that act_runner may get some errors when it reads theaction.yml
file from the job container.It should come from
The code above is not good because it always return
os.ErrNotExist
and does not return the real error. Could you try the nightly act_runner and check if thefile does not exist
error still exists?@Zettat123
I found out why this problem was in, I started the runner and using a config file. If
container.workdir_parent
is set in the config file, it will cause this failure.config.yaml
Thank you for digging into this issue. I'll take a look at this configuration later