Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sven Assmann
    @sassman
    a headless ci
    Or am I missing something?
    Cat™
    @CatTheHacker
    I'm quite confused on what are you trying to achieve
    Sven Assmann
    @sassman
    Let me try it differently, let's say I have a github actions pipeline in my repo, but I do not use github, then that's pretty useless, right?
    What I can do is use act to run it locally?
    Cat™
    @CatTheHacker
    Technically yes
    Sven Assmann
    @sassman
    cool, so imagine now a 3rd party self hostable thing, that acts as the CI server, get's notified by the repo (on push hook) and used act internally to execute the pipeline.
    Cat™
    @CatTheHacker
    but why
    Sven Assmann
    @sassman
    this thing I'm talking about would have some sort of UI (at least something that Github also shows - like build logs)
    well there are a few good reasosn
    Cat™
    @CatTheHacker
    there are so many better solutions already production-ready
    Sven Assmann
    @sassman
    github actions are pretty well known to almost all meanwhile, no new DSL to learn not like Jenkinsfile or travis yml (the adoption rate is higher)
    so this thing would have a market. Same as gitlab CI has or Bamboo or you name it
    Cat™
    @CatTheHacker
    good luck trying to sell product that doesn't even work
    Sven Assmann
    @sassman
    any solutions that support github actions pipelines?
    AFAIK not..
    Cat™
    @CatTheHacker
    azure pipelines have almost exact format as GH
    cirrus-ci also have near exact format
    Sven Assmann
    @sassman
    do they support those extensions from https://github.com/marketplace/actions
    Cat™
    @CatTheHacker
    no
    Sven Assmann
    @sassman
    see what I mean?
    IMO this has an unbeatable lever
    Cat™
    @CatTheHacker
    It's quite easy to beat though
    Sven Assmann
    @sassman
    all those community actions are gold
    Cat™
    @CatTheHacker
    as I said, good luck with broken product
    Sven Assmann
    @sassman
    But anyways, I did not intend to debate. I only wanted to know what I found out .. thanks
    photz
    @photz
    Hi, can any of you confirm if it's possible to access the outputs of a previous job through ${{needs...}}? Somehow I'm always getting [ReferenceError: 'needs' is not defined]
    photz
    @photz
    just saw that there's an issue nektos/act#295
    James Woolfenden
    @JamesWoolfenden
    newb question, im using act with the checkout action and it checks out the code from github to run the action. But i want the action to run with the code i have locally. Do i just put logic to skip the checkout step or can it default to this behaviour?
    Cat™
    @CatTheHacker
    @JamesWoolfenden checkout should by default get your local code, can you provide workflow and full act command you used?
    2 replies
    Danny Staple
    @dannystaple
    Hello, do the -j flag and the --eventpath flag work together? It seems to not be setting github.ref.
    Danny Staple
    @dannystaple
    Can I simulate a push with the overridden ref - in github.ref? Ie, on my branch, simulate a
    'devel' branch push? Such that a check like if: contains(github.ref, 'devel') would be true?
    sophie
    @sophie07483506_twitter

    Has anyone ever seen the following error when running act -n? I'm running it in a dockerfile.

    "Please choose the default image you want to use with act:

    - Large size image: +20GB Docker image, includes almost all tools used on GitHub Actions
    - Medium size image: ~500MB, includes only necessary tools to bootstrap actions and aims to be compatible with all actions
    - Micro size image: <200MB, contains only NodeJS required to bootstrap actions, doesn't work with all actions

    Default image and other options can be changed manually in ~/.actrc"

    I don't see any instructions to update the .actrc file with the default image, any guidance would be super appreciated on how to format that in the .actrc!

    3 replies
    Hannah Scovill
    @hnsvill

    My pipeline has docker build and push commands in it, and failed on docker build when I used the default medium-sized docker image, so I switched to act's larger docker runner option by deleting the .actrc file and chose large the next time I ran act. When I ran it again though, it hangs out here forever

    [deploy lambda/build] 🧪  Matrix: map[python-version:3.8]
    [deploy lambda/build] 🚀  Start image=nektos/act-environments-ubuntu:18.04

    I've also tried messing with the default .actrc file by moving around the -P flags at the beginning of the lines but it didn't seem to made a difference. Any suggestions on what to try next? Thank you!

    2 replies
    Hannah Scovill
    @hnsvill
    I posted the solve to ^ in the thread, but a question I still have - related to Sophie's question above mine - how does the evaluation of the .actrc happen or work? If I can understand it more, I'm interested in possibly PR'ing a change that adds some titles/formatting/comments to the .actrc sort of like how an .aws/config file looks.
    1 reply
    Callum Sykes
    @clicketyclackety
    image.png
    Hallo all, I've been looking at GitHub Actions and came across act for testing locally, but I can't even open the app
    Wondered if anyone might be able to help :)
    Cat™
    @CatTheHacker
    Create issue on GitHub repo
    Sander Elias
    @SanderElias
    How can I cure a ::error::Unable to get ACTIONS_RUNTIME_TOKEN env variable (on the actions/upload-artifact@v2)
    I got those on other actions too. I suspect I'm missing a part in my setup?
    Cat™
    @CatTheHacker
    @SanderElias it's not possible to use artifact actions yet, see #169
    Sander Elias
    @SanderElias
    Bummer. I need to build a big integration, and I really need artifacts. (also caching would help)
    I'll will just hit Github directly then. Thanks for the update
    Greg Werner
    @jgwerner
    has anyone ever run into Error: The runs.using key in action.yml must be one of: [docker node12], got composite?
    it's for a standard setup of a helm chart lint test: [Lint and Test Charts/lint-test] ☁ git clone 'https://github.com/helm/chart-testing-action' # ref=v2.0.1 [Lint and Test Charts/lint-test] ❌ Failure - Set up chart-testing Error: The runs.using key in action.yml must be one of: [docker node12], got composite
    Jade
    @lf-
    Can I get act to use my local copy of my js-based action for debugging the action itself? I don't see an option, but I might be missing it
    Gregory Guidero
    @keleko34

    Hey, trying to get actions for inputs to work and I do not understand what I am doing wrong 🤔
    event json:

    {
        "workflow_dispatch": {
            "inputs": {
                "tag": "v0.0.1"
            }
        }
    }

    github.event.inputs.tag is not defined
    I have tried adding "event" as a parent object in the event json but its always undefined

    Cat™
    @CatTheHacker
    afaik, that's currently not supported