"Support" channel for act. Please try to keep all your messages in a thread. We recommend using https://gist.github.com for providing code
Hi all, it's Jorge!
I just recently started using this amazing tool act
. I'm building a Python package template which generates its own GitHub actions according to user input requirements (minimum Python version, for example). TCould not find a part of the path '/run/act/actions/actions-setup-python@v2/.github/python.json'.herefore, I though that it would be super cool to have a workflow file and colling act
in GH actions just to test the generated actions from the template. However, it got the following error:
Could not find a part of the path '/run/act/actions/actions-setup-python@v2/.github/python.json'.
Nevertheless, act gets executed in GitHub actions but because of previous error, the CI detects it as a failure.
I am aware about the fact that act
was not designed with this purpose in mind (to be called as a github actions run command). But would be super cool to understand previous error or even figuring out how to solve it.
Thanks in advance for any kind of support/guidance you provide me on this π
ls: cannot access '/var/run/act/actions': No such file or directory
Still having issues when trying to run the entire suite
DEBU[0000] context needs => map[pre_job:map[outputs:map[branch:${{ steps.get-deploy.outputs.branch }} deploying_service:${{ steps.get-deploy.outputs.deploying_service }}]]]
DEBU[0000] false
FATA[0000] yaml: unmarshal errors:
line 163: cannot unmarshal !!str ${{ fro...
into []interface {}
Has this been fixed yet or is it still a know issue?
- uses: actions/checkout@v3
with:
ref: develop
DEBU[0000] Planning event: push
and it stops without spawning a Docker container. My workflow file is correct as it works on Github actions. Is there something obvious I am missing here?
Are there plans for a nektos/act-environments-ubuntu:20.04
image? I am currently using nektos/act-environments-ubuntu:18.04
and I believ my workflow is failing because of that on iterative/setup-dvc@v1
with the following message:
::error::Command failed: /usr/bin/sudo apt update && /usr/bin/sudo apt install -y git ./dvc.deb && /usr/bin/sudo rm -f 'dvc.deb'%0A%0AWARNING: apt does not have a stable CLI interface. Use with caution in scripts.%0A%0AE: The repository 'https://dl.bintray.com/sbt/debian Release' no longer has a Release file.%0AW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging yarn@dan.cx%0AW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/apt ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF%0AW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com/apt cloud-sdk InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB%0AW: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.cloud.google.com/apt kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB%0A
[Github action to run tests/Run-tests] β Failure - iterative/setup-dvc@v1
Hi there,
I'm trying to test a release pipeline. I assumed that $GITHUB_REF would be the name of a tag via repo/releases/new (in github) but I cannot mock this value, I tried using a json file and an env var but I cannot change the value and it keeps using the value of the current branch please assist
DEBU[0076]
context
env
=>
map[ACT:true
AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache
CI:true
DEBIAN_FRONTEND:noninteractive
DEPLOYMENT_BASEPATH:/opt/runner
GITHUB_ACTION:3
GITHUB_ACTIONS:true
GITHUB_ACTION_REF:
GITHUB_ACTION_REPOSITORY:
GITHUB_ACTOR:nektos/act
GITHUB_API_URL:https://api.github.com
GITHUB_BASE_REF:
GITHUB_ENV:/var/run/act/workflow/envs.txt
GITHUB_EVENT_NAME:release
GITHUB_EVENT_PATH:/var/run/act/workflow/event.json
GITHUB_GRAPHQL_URL:https://api.github.com/graphql
GITHUB_HEAD_REF:
GITHUB_JOB:deploy
GITHUB_PATH:/var/run/act/workflow/paths.txt
GITHUB_REF:refs/heads/fix-versioning
GITHUB_REPOSITORY:1Mark/deeppath
GITHUB_REPOSITORY_OWNER:1Mark
GITHUB_RETENTION_DAYS:0
GITHUB_RUN_ID:1
GITHUB_RUN_NUMBER:1
GITHUB_SERVER_URL:https://github.com
GITHUB_SHA:f103ff118d9db4dabe7eea87b3ec0545d1e63f9e
GITHUB_TOKEN:
GITHUB_WORKFLOW:Upload
Python
Package
GITHUB_WORKSPACE:/home/mark/deeppath
IMAGE_OS:ubuntu20
ImageOS:ubuntu20
LD_LIBRARY_PATH:/opt/hostedtoolcache/Python/3.10.2/x64/lib
LSB_OS_VERSION:2004
LSB_RELEASE:20.04
PATH:/opt/hostedtoolcache/Python/3.10.2/x64/bin:/opt/hostedtoolcache/Python/3.10.2/x64:/opt/hostedtoolcache/Python/3.10.2/x64/bin:/opt/hostedtoolcache/Python/3.10.2/x64:/opt/hostedtoolcache/node/16.14.0/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUNNER_PERFLOG:/dev/null
RUNNER_TRACKING_ID:
RUNNER_USER:root
RUN_TOOL_CACHE:/opt/hostedtoolcache
USER:root
pythonLocation:/opt/hostedtoolcache/Python/3.10.2/x64]
GITHUB_REF:refs/heads/fix-versioning
to be a tag value
Hey!
I have a problem of act being unable to detect all my workflows.
I have 9 different workflow files, but act -l
only lists 3. Why is this?
β app git:(act-for-github-actions) β ls .github/workflows
branch.yml ci_android.yml e2e.yml absolute-ci.yml rebranding_nightly.yml
chromatic.yml ci_ios.yml eslint_tsc_bot_development.yml mi-ui.yml
β app git:(act-for-github-actions) β act -l
Stage Job ID Job name Workflow name Workflow file Events
0 chromatic-deployment chromatic-deployment Chromatic chromatic.yml workflow_dispatch,push,pull_request
0 branch_build branch_build Eslint & TSC Bot - Development eslint_tsc_bot_development.yml push
0 run Compile Language and Commit Compile Languages for Lokalise PRs lokalise-ci.yml push,workflow_dispatch
β app git:(act-for-github-actions) β
act
up in a gitpod environment
- name: capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: build/libs/
Trying to use event path, but does not seem to work, am I missing something?
I have
on:
workflow_dispatch:
inputs:
environment:
required: true
type: choice
description: Environment to deploy to
options:
- dev
- qa
- stage
- prod
and
{
"action": "workflow_dispatch",
"inputs": {
"environment": "dev"
}
}
Unexpected value 'uses'
referring to a step. Is that because reusable workflows is not supported in 0.2.24?
β― ls ./.github/workflows/
Permissions Size User Date Modified Git Name
.rw-r--r-- 1.4k tyler 15 Feb 10:15 -- create-tags.yml
.rw-r--r-- 16k tyler 28 Feb 13:05 -- deploy.yml
.rw-r--r-- 879 tyler 21 Mar 13:34 -- destroy-ephemeral-stack-on-close.yml
.rw-r--r-- 4.2k tyler 27 Mar 13:30 -- main.yml
.rw-r--r-- 524 tyler 21 Mar 13:34 -- remove-labels.yml
act -n -v -W .github/workflows/tags.yml
DEBU[0000] Loading environment from /Users/mturatti/src/softinstigate/restheart/.env
DEBU[0000] Loading secrets from /Users/mturatti/src/softinstigate/restheart/.secrets
DEBU[0000] Loading workflow '/Users/mturatti/src/softinstigate/restheart/.github/workflows/tags.yml'
DEBU[0000] Reading workflow '/Users/mturatti/src/softinstigate/restheart/.github/workflows/tags.yml'
DEBU[0000] Planning event: push
DEBU[0000] Loading slug from git directory '/Users/mturatti/src/softinstigate/restheart/.git'
DEBU[0000] Loading revision from git directory '/Users/mturatti/src/softinstigate/restheart/.git'
DEBU[0000] Found revision: 2d3987bcb1fb3a6f2434f500b693f67114ed8602
DEBU[0000] HEAD points to '2d3987bcb1fb3a6f2434f500b693f67114ed8602'
DEBU[0000] using github ref: refs/heads/6.2.x
DEBU[0000] Found revision: 2d3987bcb1fb3a6f2434f500b693f67114ed8602
DEBU[0000] Loading slug from git directory '/Users/mturatti/src/softinstigate/restheart/.git'
DEBU[0000] Loading revision from git directory '/Users/mturatti/src/softinstigate/restheart/.git'
DEBU[0000] Found revision: 2d3987bcb1fb3a6f2434f500b693f67114ed8602
DEBU[0000] HEAD points to '2d3987bcb1fb3a6f2434f500b693f67114ed8602'
DEBU[0000] using github ref: refs/heads/6.2.x
DEBU[0000] Found revision: 2d3987bcb1fb3a6f2434f500b693f67114ed8602
DEBU[0000]
hello, I'm a bit new to actions and act in general, I'm trying to checkout my own repository using
name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout the project
uses: actions/checkout@v2
- name: test
run: find .
but in the test step, there are no files
a.java
, and the workflow creates bin/a.jar
, the bin folder doesnt actually exist on the host, it exists only within the docker container running the workflow
docker -v $pwd/bin:/aws amazon/aws-cli s3 cp a.jar s3://somebucket
that doesnt work
workflow_call:
and I would like to have the capability to select the workflow I want to execute. Is ACT capable of that? from what I saw of the help menu it is only possible to select he job
Hi all π
My name is Jorge MartΓnez. I'm an Ansys employee working on a Python library generator named ansys-templates.
This tool generates Python projects which include a Python library, configuration for code style tools and a GitHub Actions YML file. For testing this last file, we are using act
. This means, we are executing act
in our main CI tomake sure that baked actions file works properly.
However, I see the following output from GH logs:
Error: Unable to process command '[GitHub CI/Code style ] ❓ ##[add-matcher]/run/act/actions/actions-setup-python@v2/.github/python.json' successfully.
Error: Could not find a part of the path '/run/act/actions/actions-setup-python@v2/.github/python.json'.
time="2022-04-11T09:29:14Z" level=warning msg="unable to get git repo: section \"remote \\\"origin\\\"\" does not exist"
[GitHub CI/Code style ] ✅ Success - Set up Python
Even though those errors are being raise, the "Success - Set up Pyhton" is shown and act works as expected. However, the errors are captured by GitHub which labels the job as failed one.
More information from the logs: https://github.com/pyansys/ansys-templates/actions/runs/2147571852
I am installing act
using brew
and imposing the following config:
echo "-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest" >> ~/.actrc
I've tried with other images but the same error appears on the logs. May you please provide me with some insight about this error?
Thanks for developing and maintaining act
! It is really useful and simple to use π