You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
act version: 0.2.50
GOOS: darwin
GOARCH: arm64
NumCPU: 12
Docker host: DOCKER_HOST environment variable is not set
Sockets found:
/var/run/docker.sock
$HOME/.docker/run/docker.sock
Config files:
/Users/jonj/.actrc:
-P ubuntu-latest=node:16-buster-slim
-P ubuntu-22.04=node:16-bullseye-slim
-P ubuntu-20.04=node:16-buster-slim
-P ubuntu-18.04=node:16-buster-slim
Build info:
Go version: go1.21.0
Module path: command-line-arguments
Main version:
Main path:
Main checksum:
Build settings:
-buildmode: exe
-compiler: gc
-ldflags: -X main.version=0.2.50
DefaultGODEBUG: panicnil=1
CGO_ENABLED: 1
CGO_CFLAGS:
CGO_CPPFLAGS:
CGO_CXXFLAGS:
CGO_LDFLAGS:
GOARCH: arm64
GOOS: darwin
Docker Engine:
Engine version: 24.0.5
Engine runtime: runc
Cgroup version: 2
Cgroup driver: cgroupfs
Storage driver: overlay2
Registry URI: https://index.docker.io/v1/
OS: Docker Desktop
OS type: linux
OS version:
OS arch: aarch64
OS kernel: 5.15.49-linuxkit-pr
OS CPU: 6
OS memory: 7851 MB
Security options:
name=seccomp,profile=unconfined
name=cgroupns
Command used with act
act -W .github/workflows/push.yml
Describe issue
When deserializing a JSON string, all numbers are floats. Because act formats floats with fewer significant digits than actions/runner, this can be problematic (e.g. it's an id and you're about to use it in an API call).
[push.yml/act-bug] ⭐ Run Main echo'123456'
[push.yml/act-bug] 🐳 docker exec cmd=[bash --noprofile --norc -e-o pipefail /var/run/act/workflow/0] user= workdir=
| 123456
[push.yml/act-bug] ✅ Success - Main echo'123456'
[push.yml/act-bug] ⭐ Run Main echo'1234567'
[push.yml/act-bug] 🐳 docker exec cmd=[bash --noprofile --norc -e-o pipefail /var/run/act/workflow/1] user= workdir=
| 1234567
[push.yml/act-bug] ✅ Success - Main echo'1234567'
[push.yml/act-bug] ⭐ Run Main echo'123456'
[push.yml/act-bug] 🐳 docker exec cmd=[bash --noprofile --norc -e-o pipefail /var/run/act/workflow/2] user= workdir=
| 123456
[push.yml/act-bug] ✅ Success - Main echo'123456'
[push.yml/act-bug] ⭐ Run Main echo'1.234567e+06'
[push.yml/act-bug] 🐳 docker exec cmd=[bash --noprofile --norc -e-o pipefail /var/run/act/workflow/3] user= workdir=
| 1.234567e+06
[push.yml/act-bug] ✅ Success - Main echo'1.234567e+06'
[push.yml/act-bug] 🏁 Job succeeded
Additional information
Note the 1.234567e+06 on the last step. By contrast, when running the workflow on GitHub, it formats those with enough significant digits and no trailing zero:
Bug report info
Command used with act
Describe issue
When deserializing a JSON string, all numbers are floats. Because act formats floats with fewer significant digits than actions/runner, this can be problematic (e.g. it's an id and you're about to use it in an API call).
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
Note the
1.234567e+06
on the last step. By contrast, when running the workflow on GitHub, it formats those with enough significant digits and no trailing zero:The text was updated successfully, but these errors were encountered: