Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 05 09:10
    @catthehacker banned @1948_your_tlv_homo_1488:swirl.funny.cl
Anton Patsev
@patsevanton
DEBU[0001] context env => map[ACT:true]
DEBU[0001] Evaluating '!contains(github['event']['commits'][0]['message'], '[skip ci]')' instead of '!contains(github.event.commits[0].message, '[skip ci]')'
ERRO[0001] Unable to interpolate string '${{!contains(github.event.commits[0].message, '[skip ci]')}}' - [TypeError: Cannot access member '0' of undefined]
DEBU[0001] expression '${{!contains(github.event.commits[0].message, '[skip ci]')}}' evaluated to 'false'
[Release/release] Skipping job 'release' due to '${{!contains(github.event.commits[0].message, '[skip ci]')}}'
how fixed? Thanks!
5 replies
Daniel Doubrovkine (dB.)
@dblock
Quick q: GitHub runs jobs as a user, not as root. Can I do this with act?
7 replies
(I have some tests that fail in my project if I run as root.)
Josh Soref
@jsoref
1 reply
Sandy Rogers
@SandyRogers
Hello! I am using act for a repo (call it me/childrepo), which locally I have checked out as a submodule of a parent repo. When I run act in childrepo, it obviously runs childrepo/.github/workflows/test.yml. However... the ${GITHUB_REF} set by act is refs/head/parentrepo-branch-name and ${GITHUB_REPOSITORY} is me/parentrepo. This is a problem because act provides a different github context to what github actions does (where ${GITHUB_REPOSITORY}=me/childrepo etc). Does anybody know if this is expected behaviour, or an issue? I saw a potentially related issue nektos/act#428 that has gone stale.
3 replies
Daniel Doubrovkine (dB.)
@dblock
Might be interesting to you, https://code.dblock.org/2021/06/15/running-github-actions-locally-using-act.html, from my yesterday's exploration.
2 replies
Victor Passapera
@vpassapera
Hello all, not sure exactly where to ask this, but when running act locally, it seems that any step I have that contains if: ${{ failure() }} is not honored, and the workflow fails without running any steps that have the failure clause
is this a known issue? (It works on github but not act)
Daniel Doubrovkine (dB.)
@dblock
We have 1 engine repo, and N plugin repositories. We're trying to build engine, then each plugin, then assemble everything in a .zip. Is writing a GitHub workflow that uses Act to call GitHub workflows of each plugin crazy?
2 replies
Victor Passapera
@vpassapera

Given the following workflow: https://github.com/PhpTyping/types/blob/master/.github/workflows/build-stable.yaml

In act, I am able to trigger it.

However, When i make a change that purposely fails unit tests, I expect the if: ${{ failure() }} step to run, and it is not. (https://github.com/PhpTyping/types/blob/master/.github/workflows/build-stable.yaml#L63)

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
@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