mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2928] Using custom Variable access #1258
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#1258
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 @lautriva on GitHub (May 23, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2928
Act version
act version 0.2.77
Feature description
I'm using Gitea and their CI is based on act
I want to test my workflows locally before committing them on the repository
Unfortunately, the run fails with
Failed to match run-step: Line: 17 Column 14: Unknown Variable Access giteaHere is an example run command (other parts are irrelevant)
echo ${{ gitea.workspace }}(same for
gitea.repository,gitea.ref, etc...)The
gitea.group contain the same variables asgithub.Is there a way to have act recognize it?
The idea would be to have a new act parameter that specifies a custom group that copies the
github.variables intogitea.while still keepinggithub.to keep compatibilityfor example, if this feature request were implemented,
actcould be called like that:Fill
gitea.variables like${{ gitea.workspace }}:act --variables-group giteaFill
asdf.variables like${{ asdf.workspace }}:act --variables-group asdfThe workflow I use in case it might helps
$ act -l -W ./.gitea/workflows/@panekj commented on GitHub (May 23, 2025):
You should use gitea runner to run workflows locally when using gitea workflows
@lautriva commented on GitHub (May 23, 2025):
Unfortunately according their repository they stripped down act so it is not usable in command line anymore and only as library
@panekj commented on GitHub (May 23, 2025):
You should use the runner, not act
@panekj commented on GitHub (May 23, 2025):
https://gitea.com/gitea/act_runner/src/branch/main/internal/app/cmd/exec.go#L452
@lautriva commented on GitHub (May 23, 2025):
Maybe I'm missing something but the runner cannot work if its not registered with a gitea instance, is it ?
Edit: Thanks, I will take a look at the exec command
@lautriva commented on GitHub (May 23, 2025):
It works, thank you 😊
For future reference, here is how to call a specific Gitea workflow with act_runner
act_runner exec -i my_custom_image -W .gitea/workflows/build-and-test.yml --use-gitignore false