mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #519] Matching runs-on labels for self-hosted runners #353
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#353
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 @dradetsky on GitHub (Feb 4, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/519
I'm trying to use act to run some workflows locally. However, for some reason my organization is using self-hosted runners. This means that rather than the more common
runs-onkey such asruns-on: ubuntu-latest, my workflow saysruns-on: [self-hosted, Linux, X64, infra]. I think these are a list of labels s.t. any runner in my org's runner group which has all those labels is a valid candidate for running the workflow.The problem is that I can't match this with
-Poptions. Or at least, it's not clear how I'm supposed to.I've since learned that a workaround is to write e.g.
act -P self-hosted=catthehacker/ubuntu:act-latest, but this is counterintuitive and you should probably add a line of documentation.@catthehacker commented on GitHub (Feb 5, 2021):
Could you explain how is this counterintuitive and what we can do to fix that?
It's mentioned in README and
act --help:@github-actions[bot] commented on GitHub (Mar 8, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@ap0ught commented on GitHub (Mar 8, 2021):
as a new user I ran into this same thing.
the error message I get is this.
[main.yml/A job to say hello] 🚧 Skipping unsupported platform 'self-hosted'
My first instinct is to find a way to alias self-hosted with ubuntu-latest
If this taught me how to alias or mentioned I could run with the -P option the error would be less negative.
@catthehacker commented on GitHub (Apr 2, 2021):
In my opinion
actusage is quite well documented inREADME.mdfile. If you feel like something is unclear please share your thoughts or submit PR.