Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Victor Passapera
    @vpassapera
    Is this normal behavior for act? It runs as expected on github, but act hard-fails and won't execute the steps following the failure (in say, unit tests) even if they have the if: ${{ failure() }} clause.
    Shots Of Freedom
    @ShotsOfFreedom__twitter

    Is there a way to test for conditions like this:

    on:
     pull_request:
       types: [closed]
       branches:
         - main 
    
    jobs:
      setup:
        if: github.event.action == 'closed' && github.event.pull_request.merged == true

    I'm not sure this ever got answered. I'm running act pull_request and this is running, but I would love to find a way to cause it to skip the workflow or trigger a "pull_request was created" action instead

    3 replies
    Victor Passapera
    @vpassapera
    No one can help with what I am asking about? I even looked at the tests and it seems like you're testing for those tokens.
    The local behavior is unexpected.
    jimyryan
    @jimyryan:matrix.org
    [m]

    Hello, I have issue with artifact-server, my pipeline crash :(
    I'm trying to do things describes in https://github.com/nektos/act/issues/329#issuecomment-854838927 without success :(
    About the npm server, I have setup it using npm ci && npm start. When I launch act, I export env varialbe export ACTIONS_CACHE_URL=localhost:8080 but I don't see any changes on my error :(

    Bellow, my error message:

    4 replies
    Austen
    @anovis

    i am having trouble getting a local action to run. i first tried running

       - name: goblet deploy
          uses: ./
          env:
            PROJECT: ${{ env.GCLOUD_PROJECT }}

    which errors with Error: invalid reference format

    when i tried

    - uses: actions/checkout@v2
          name: goblet deploy
          with:
            path: "goblet-github-actions"
          env:
            PROJECT: ${{ env.GCLOUD_PROJECT }}

    i got the Skipping local actions/checkout because workdir was already copied and my docker continer was not run.

    i verified that my dockerfile runs correctly on its own

    i am new to act so I am assuming i am just missing somethign small. appreciate the help

    Chunghyun Lee
    @sinna94

    Hi, I have trouble using act

    name: Java CI with Gradle
    
    on:
      push:
        branches: [ master, develop ]
      pull_request:
        branches: [ master, develop ]
    
    jobs:
      test:
    
        runs-on: ubuntu-latest
    
        steps:
          - uses: actions/checkout@v2
          - name: Set up JDK 11
            uses: actions/setup-java@v2
            with:
              java-version: '11'
              distribution: 'adopt'
          - name: Grant execute permission for gradlew
            run: chmod +x ./gradlew
          - run: ./gradlew test
          - name: Build with Gradle
            run: ./gradlew build
    [Java CI with Gradle/test]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /Users/chunghyun/study/spring-boot-web-service/workflow/2] user=
    [Java CI with Gradle/test]   βœ…  Success - Grant execute permission for gradlew
    [Java CI with Gradle/test] ⭐  Run ./gradlew test
    [Java CI with Gradle/test]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /Users/chunghyun/study/spring-boot-web-service/workflow/3] user=
    | /lib64/ld-linux-x86-64.so.2: No such file or directory
    [Java CI with Gradle/test]   ❌  Failure - ./gradlew test
    Error: exit with `FAILURE`: 255

    gradlew exists in that path.
    Is there something I need to set for the path?
    I use act version 0.2.23

    3 replies
    Dan H
    @volleynerd

    After playing with ACT for the first time yesterday, I think I'm finally understanding the general concepts and differences between (hoping this helps others just getting started)

    • BINDING the host source dir (with -b argument when run act) in which case all host source is there in the running container and therefore workflow can run against work-in-progress files (NOTE: in this case if you DO run checkout action, it will first delete everything there, which is going to nuke your files on the host), OR
    • not BINDING (the default) in which case you have a clean workspace in the container, and need to run checkout action (NOTE: in this case, you will not have any work-in-progress files from the host since they're coming from Git checkout)

    Please let me know if the above is correct, or what am I missing? Thank you.

    Now to figure out how to provide proper credentials/token to the checkout action. PAT not working...

    4 replies
    Kareem Kwong
    @kwngo

    i am having trouble getting a local action to run. i first tried running

       - name: goblet deploy
          uses: ./
          env:
            PROJECT: ${{ env.GCLOUD_PROJECT }}

    which errors with Error: invalid reference format

    when i tried

    - uses: actions/checkout@v2
          name: goblet deploy
          with:
            path: "goblet-github-actions"
          env:
            PROJECT: ${{ env.GCLOUD_PROJECT }}

    i got the Skipping local actions/checkout because workdir was already copied and my docker continer was not run.

    i verified that my dockerfile runs correctly on its own

    i am new to act so I am assuming i am just missing somethign small. appreciate the help

    Having this same issue :(

    2 replies
    mf-eqsdigital
    @mf-eqsdigital

    Hi guys,

    I've got this yml file

    name: API Test
    on:
    push:
    branches:

      - development

    pull_request:
    branches:

      - development

    jobs:
    api-test:
    name: API Test
    runs-on: ubuntu-20.04
    defaults:
    run:
    working-directory: ./
    steps:

      - name: Check out Git repository
        uses: actions/checkout@v2
    
      - name: Setup Go
        uses: actions/setup-go@v2
        with:
          go-version: '1.15'

    And since yesterday i get this error
    [API Test/API Test] ⭐ Run Setup Go
    time="2021-07-01T09:45:22+01:00" level=info msg=" ☁ git clone 'https://github.com/actions/setup-go' # ref=v2"
    [API Test/API Test] 🐳 docker cp src=C:\Users\oruam.cache\act/actions-setup-go@v2/ dst=/mnt/c/Users/oruam/Documents/_actions/actions-setup-go@v2/
    | OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "node": executable file not found in $PATH: unknown
    [API Test/API Test] ❌ Failure - Setup Go
    Error: exit with FAILURE: 126

    I didn't change anything and start getting this error.. Anyone having the same issue?

    5 replies
    Ryanv2
    @hackercat:matrix.org
    [m]
    I've worked again a bit on GitHub runner repo and built successfully ubuntu-20.04 from packer template, source here: https://github.com/catthehacker/virtual-environments/tree/full-20.04-dev
    will need to do cleanup of it, but it looks like it might work, tests and software report have been removed because they fail all the time because of those stupid environment variables (todo: fix), removed: mysql, postgresql as they slow down or outright fail build, there might be some other stuff removed, look at commit log. Image is uploading catthehacker/ubuntu:full-20.04-dev size: ~40GB.
    AgustΓ­n Gonzalez Nicolini
    @bananitadolca
    Hey! did anyone solve the issue when getting "git: command not found" ?
    yuko fuyutsuki
    @fuyutsuki
    Hi there, how to resolve this?
    time="2021-07-10T17:13:51+09:00" level=debug msg="Evaluating 'Boolean(contains(github['event']['head_commit']['message'], '[skip ci]') == false)' instead of 'Boolean(contains(github.event.head_commit.message, '[skip ci]') == false)'"
    time="2021-07-10T17:13:51+09:00" level=debug msg="Loading slug from git directory 'D:\\Repository\\test-actions\\.git'"
    [dev/Prepare PHP         ]   ❌  Error in if: expression - Prepare PHP
    2 replies
    Matan Shukry
    @matanshukry
    hey guys, I can't seem to run act for the first time on windows. it shows the "choose the default image" question but immediately quits without waiting for input. I tried both git for bash and cmd.
    Any ideas?
    9 replies
    Matan Shukry
    @matanshukry
    image.png
    image.png
    image.png
    image.png
    Max
    @dopey
    Hey :wave: , just starting out with act. I'm seeing FATA[0000] yaml: unmarshal errors: line 3: cannot unmarshal !!map into string any time I run an act command. Did a brief look online and couldn't find any obviously related issues.
    14 replies
    Tez Lopchan
    @tezlopchan
    Screen Shot 2021-07-19 at 3.36.29 PM.png
    Estellise Yukihime
    @estellise-yukihime
    Hi, is there any way to download the build file generated by the workflow?
    6 replies
    Ryanv2
    @hackercat:matrix.org
    [m]
    automated builds for those massive docker images including all tools from github actions are now here: https://github.com/catthehacker/virtual-environments/runs/3138234311
    1 reply
    Estellise Yukihime
    @estellise-yukihime
    image.png
    image.png
    Is this a problem with the container size?
    Estellise Yukihime
    @estellise-yukihime
    image.png
    I scroll up, but couldn't find anything the could likely cause the build error
    lubyou
    @lubyou

    Hi,
    with catthehacker/ubuntu:act-latest, I am getting
    OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "node": executable file not found in $PATH: unknown

    Inside the container, I can see that node exists at /opt/hostedtoolcache/node/14.17.3/x64/bin/node, but PATH does not include said directory.

    I tried act -W .github/workflows/master.yml -P ubuntu-20.04=catthehacker/ubuntu:act-20.04-20210620 --pull, but get the same error.

    Any suggestions?
    Thank you

    25 replies
    lubyou
    @lubyou
    are there any clever workarounds for nektos/act#329
    7 replies
    Caitlin D
    @ancequay_twitter
    I'm trying to run with github-instance flag set (enterprise repo), but it's also using the enterprise repo url for non-enterprise actions. (e.g. failing to find github.com/actions/setup-python because it's looking in https://github.com/enterprise/actions/setup-python.) Ideas on how to get around this?
    5 replies
    Ryan (hackercat)
    @catthehacker

    v0.2.24 release:

    Changelog

    0ff204b Read localaction's from container (#719)
    531ea02 Fix ImageOS format (#761)
    4036b8a README: add MacPorts info (#762)
    149cc19 Fix defaults (composite) (#753)
    c865a56 Fix url typo in README.md (#746)
    73b22a0 Add docker context workaround to readme (#749)
    dcbd583 Add needs job output (#629)
    1cf422e fix: warn Apple M1 (arm64) users (#743)

    Keith Zantow
    @kzantow
    Hi all, thank you for a great project! Sorry if this is documented somewhere, I haven't been able to find it: is there an nodejs/npm wrapper for act?
    5 replies
    pigfrown
    @pigfrown
    Is it possible to run "act" on a dockerd with user namespaces enabled?
    I get an error "cannot share the host's network namespaces when user namespaces are enabled", but just wondered if there is a work around?
    5 replies
    Christopher "Chief" Najewicz
    @chiefy
    Question - is this user= a problem?
    [Build Data API/build-data-api]   🐳  docker exec cmd=[node /var/run/act/actions/gradle-wrapper-validation-action@v1/dist/index.js] user=
    6 replies
    Carlos Alexandre
    @calexandre
    Hey guys, anyone got super-linter to run on act??
    I'm getting the error 2021-08-13 16:29:28 [ERROR] Failed to get [GITHUB_ORG] and i'm currently using the slim image...
    7 replies
    Dave Tapley
    @davetapley
    Is act supposed to clean up containers?
    I find myself having to docker stop $(docker ps --filter "name=act-*" -q) && docker system prune quite often πŸ€”
    1 reply
    Keith Zantow
    @kzantow
    Hi, I'm having a hard time getting any docker images building using act, although this doesn't really even seem to be docker related. I've tried a number of things including specifying what I think is the "medium" image to use like act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest -j test (and ubuntu:js-latest) but I end up with problems executing the actions at all: Exec command '[node /actions/docker-build-push-action@v2/dist/index.js]' | OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "node": executable file not found in $PATH: unknown. Am I doing something completely wrong?
    1 reply
    Keith Zantow
    @kzantow
    Also: does act support service containers? It seems these are not running by default, at least.
    1 reply
    Andy Maloney
    @asmaloney
    Heya! New to "act". I can't find info on how to set the tag I want when I use "act release". Is this possible? (Background - I'm trying to write an action that will zip up the repo while skipping some files and I want to give the zip an intelligent name using the tag of the release.)
    1 reply
    Paulo Matos
    @pmatos
    Hi - what happens to artifacts when running a workflow through act? Is there a way to save them somewhere on disk ?
    5 replies
    imerkle
    @imerkle
    Whats the working dir after checkout ? Is it github_workspace?
    imerkle
    @imerkle
    I'm using docker compose and mapping `{$GITHUB_WORKSPACE}:/myworkspace in volume but myworkspace does not contains contents of my repo
    1 reply
    This works in github sctions
    Ari Huttunen
    @StatisticalMice
    Hi! What does --github-instance actually do? Does it cause act to execute the actions in the enterprise server's runners, or something else?
    7 replies
    reivilibre.element
    @reivilibre.element:librepush.net
    [m]

    hi folks, I'm getting output like this:

    [Tests/lint-3]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-python@v2/dist/index.js] user=
    [Tests/lint-3]   πŸ’¬  ::debug::Semantic version spec of 3.x is 3.x
    [Tests/lint-3]   πŸ’¬  ::debug::isExplicit: 
    [Tests/lint-3]   πŸ’¬  ::debug::explicit? false
    [Tests/lint-3]   πŸ’¬  ::debug::evaluating 0 versions
    [Tests/lint-3]   πŸ’¬  ::debug::match not found
    | Version 3.x was not found in the local cache
    [Tests/lint-3]   ❗  ::error::API rate limit exceeded for **My IP address**. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
    [Tests/lint-3]   ❌  Failure - actions/setup-python@v2

    I'm not really sure what's going on here; this looks like a GitHub API rate limit message. Is this something that act is doing -- if so, is there some way to authenticate to GitHub to get a higher rate limit?

    2 replies
    dtracers
    @dtracers

    Question!
    I am trying to run a workflow that uses git commands but it seems the image I am using does not come with git installed
    Is there a way to add git to the image used?

    For reference when I first ran it and it asked me what image to install I chose "large"

    15 replies