mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #2466] Error: workflow is not valid #1138
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#1138
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 @Darkratos on GitHub (Sep 19, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2466
Bug report info
Command used with act
Describe issue
It says workflow is not valid. It works when running from Github Actions.
Link to GitHub repository
https://github.com/wavoip/chatwoot
Workflow content
Relevant log output
Additional information
No response
@ChristopherHX commented on GitHub (Sep 19, 2024):
Unable to reproduce
Original Workflow has no problems in act: https://github.com/wavoip/chatwoot/actions/runs/10913234450/workflow
Why did you even replace
secrets.NAMEby<redacted>? This make the workflow invalid for both act and GitHub Actions.@Darkratos commented on GitHub (Sep 19, 2024):
I redacted in the post, not on the code. Locally I just replaced by my actual credentials. I did not realize this would actually access the repository's variables.
@ChristopherHX commented on GitHub (Sep 19, 2024):
For secrets are secret files that map secret names to values
e.g. a secret Name can get a value by
-s Name=mysecretvalName=mysecretvalas a line in.secretsShould be described on nektosact.com
My advice, To do what you have tried correctly then you have to replace ${{ secret.NAME }} by your secret, don't leave it as expression.
Like sayed, it's not recommend to make such changes in workflow files directly
Act would show the exact same message in both cases, so I couldn't notice that detail.