Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Cat™
    @CatTheHacker
    Object is missing property run required by property working-directory.
    does it work properly on GitHub actions?
    Bryan Kok
    @Transfusion
    @CatTheHacker I don't think it does :laughing: but you pointed me in the right direction, I copied it from one of the templates generated by GH actions https://github.community/t/github-actions-working-directory-incorrectly-documented-unexpected-value-working-directory/16076/8
    (instead of specifying working-directory under the steps, i did this and it worked)
    defaults:
      run:
        working-directory: test
    btw, what extension are you using to validate the yaml file?? it looks so handy!
    Cat™
    @CatTheHacker
    default formatter I have set is redhat.vscode-yaml
    but I also have docsmsft.docs-yaml and PascalReitermann93.vscode-yaml-sort
        "[yaml]": {
            "editor.defaultFormatter": "redhat.vscode-yaml",
            "editor.insertSpaces": true,
            "editor.tabSize": 2,
            "editor.quickSuggestions": {
                "other": true,
                "comments": false,
                "strings": true
            },
            "editor.autoIndent": "full"
        },
    Karol
    @karolswdev

    Hey guys. Has anybody had troubles with matrix variables with act? I keep getting the | /github/workflow/10: line 1: ${{matrix.path}}: bad substitution error.

    I wonder if this approach is supported at all at the moment?

    Karol
    @karolswdev
    This is because I was using working-directory: ${{matrix.path}}. I did a workaround to do cd $${matrix.path}} && run-whatever-I-want
    Cat™
    @CatTheHacker
    post full workflow
    Christophe Lecointe
    @christophelec
    Hello everyone, I'm having trouble making act work on MacOS. I installed the latest version from brew, and tried to run a few command but they all come back blank, even listing workflows. I have a docker daemon running via Minikube. Any idea what could be the issue here ? I did not find error logs to provide even with -v so far
    Christophe Lecointe
    @christophelec
    Ok, I have things happening by triggering the pull_request event, but I'm not sure why my workflows are not listed when doing a -l ?
    Cat™
    @CatTheHacker
    @christophelec act by default works on workflows with push event
    see:
    https://github.com/nektos/act#commands
    --detect-event Use first event type from workflow as event that triggered the workflow
    nektos/act#484
    Andrew Hall
    @andrewhall-premier
    Screen Shot 2021-01-21 at 8.22.51 AM.png
    H i - I'm trying to run act with the ubuntu-18.04 environment, but it's ignoring the parameter and running within buster-slim. Any insight into the problem?
    Cat™
    @CatTheHacker
    @andrewhall-premier check if workflow is using ubuntu-18.04
    Andrew Hall
    @andrewhall-premier
    It uses ubuntu-latest, do I have to peg it to 18.04?
    Cat™
    @CatTheHacker
    or use -P ubuntu-latest=[...]
    Andrew Hall
    @andrewhall-premier
    ah
    makes sense, thanks
    That worked! Thanks for such a quick response! You've saved me hours!
    Cat™
    @CatTheHacker
    :thumbsup:
    Andrew Hall
    @andrewhall-premier
    IMO, it would be nice to receive a warning message if the specified override doesn't match run value in the workflows file. For a NOOB it was non-obvious
    Cat™
    @CatTheHacker
    I'll see what I can do about it
    Andrew Hall
    @andrewhall-premier
    :thumbsup:
    Sven Assmann
    @sassman
    I wonder, if there was already someone finding or doing a web ui?
    Cat™
    @CatTheHacker
    I'm not aware but that is absolutely worst idea
    Sven Assmann
    @sassman
    How would you keep track of build logs etc? I mean if using act as a build pipeline runner..
    Cat™
    @CatTheHacker
    I read them?
    Not sure what you mean
    thomascorthals
    @thomascorthals
    @sassman If you run the workflow on GitHub, you get a nice web UI with access to the build logs.
    Cat™
    @CatTheHacker
    The goal of act is to make sure workflow works, once it works I just push it github and have GH Actions do stuff
    from GH Actions you have separation per jobs, workflows, etc.
    Sven Assmann
    @sassman
    Maybe my use case in mind is a bit different from yours. I'm talking about not using github for execution but an own ci - server. Like for example jenkins gives the UI and the runner infrastructure..
    sure thing.. not suggesting that this is the act use case at all..
    Cat™
    @CatTheHacker
    If you need to run stuff on demand there is https://agola.io/
    Sven Assmann
    @sassman
    I read it but I think that is something different
    Cat™
    @CatTheHacker
    that's a CI, like Jenkins
    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