act icon indicating copy to clipboard operation
act copied to clipboard

Short SHAs are not working

Open steebchen opened this issue 7 years ago • 11 comments

You can use short SHAs like this:

action "run tests" {
  uses = "actions/docker/cli@04185cf"
  args = "build ."
}

This works fine in Github, but it does not using act:

[run tests] Unable to resolve 04185cf: reference not found
Error: reference not found

steebchen avatar May 06 '19 03:05 steebchen

I get the same problem with a tag.

I'm trying to use nuxt/actions-yarn@node-10; it works fine on GitHub, but I get the same error with act.

alexlafroscia avatar May 09 '19 04:05 alexlafroscia

@alexlafroscia Can you please re-open? (oops – sorry for the wrong mention. I'm too tired today!)

steebchen avatar Mar 19 '20 16:03 steebchen

I'm not able to do that -- this isn't my repo.

alexlafroscia avatar Mar 19 '20 16:03 alexlafroscia

reopened.

can @alexlafroscia or @steebchen provide an example workflow to reproduce with latest version of act?

cplee avatar Mar 19 '20 16:03 cplee

Issue is stale and will be closed in 7 days unless there is new activity

github-actions[bot] avatar May 19 '20 00:05 github-actions[bot]

This is happening with act version 0.2.9 and uses: ruby/setup-ruby@v1 as well. v1 is a branch in this case.

Here's the reproduction https://github.com/bogn83/reproduce_act_62/blob/master/.github/workflows/ruby.yml

The logs of the successful run on GitHub's infrastructure can be found in the third step here.

Running act locally just prints:

[Setup Ruby/run_rspec] ⭐  Run Set up Ruby
[Setup Ruby/run_rspec]   ☁  git clone 'https://github.com/ruby/setup-ruby' # ref=v1
[Setup Ruby/run_rspec] Unable to resolve v1: reference not found
[Setup Ruby/run_rspec]   ❌  Failure - Set up Ruby
Error: reference not found

bogn83 avatar Jun 10 '20 13:06 bogn83

I'm facing the same issue that @bogn83 mentioned.

kaiomagalhaes avatar Jul 07 '20 14:07 kaiomagalhaes

Issue is stale and will be closed in 7 days unless there is new activity

github-actions[bot] avatar Sep 06 '20 00:09 github-actions[bot]

Comment to keep this issue open.

amitmahbubani avatar Sep 06 '20 07:09 amitmahbubani

Same here. I'm adding more output. The actions are running at Github.

/w/t/flow_climate (develop ± ) ∫ act                                                                                                                                                                                              [15:04:51]
[FlowClimateBuild/Tests  ] 🚀  Start image=node:12.6-buster-slim
[FlowClimateBuild/Linters] 🚀  Start image=node:12.6-buster-slim
[FlowClimateBuild/Deploy ] 🚀  Start image=node:12.6-buster-slim
[FlowClimateBuild/Deploy ]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[FlowClimateBuild/Linters]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[FlowClimateBuild/Tests  ]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[FlowClimateBuild/Tests  ]   🐳  docker cp src=/Users/celsomartins/workspace/taller/flow_climate/. dst=/github/workspace
[FlowClimateBuild/Linters]   🐳  docker cp src=/Users/celsomartins/workspace/taller/flow_climate/. dst=/github/workspace
[FlowClimateBuild/Deploy ]   🐳  docker cp src=/Users/celsomartins/workspace/taller/flow_climate/. dst=/github/workspace
[FlowClimateBuild/Tests  ] ⭐  Run Checkout code
[FlowClimateBuild/Tests  ]   ✅  Success - Checkout code
[FlowClimateBuild/Tests  ] ⭐  Run Setup Ruby
[FlowClimateBuild/Tests  ]   ☁  git clone 'https://github.com/ruby/setup-ruby' # ref=v1
[FlowClimateBuild/Deploy ] ⭐  Run actions/checkout@v2
[FlowClimateBuild/Deploy ]   ✅  Success - actions/checkout@v2
[FlowClimateBuild/Deploy ] ⭐  Run akhileshns/[email protected]
[FlowClimateBuild/Deploy ]   ☁  git clone 'https://github.com/akhileshns/heroku-deploy' # ref=v3.5.6
[FlowClimateBuild/Linters] ⭐  Run Checkout code
[FlowClimateBuild/Linters]   ✅  Success - Checkout code
[FlowClimateBuild/Linters] ⭐  Run Setup Ruby
[FlowClimateBuild/Linters]   ☁  git clone 'https://github.com/ruby/setup-ruby' # ref=v1
[FlowClimateBuild/Tests  ] Unable to resolve v1: reference not found
[FlowClimateBuild/Tests  ]   ❌  Failure - Setup Ruby

celsoMartins avatar Sep 24 '20 18:09 celsoMartins

Issue is stale and will be closed in 7 days unless there is new activity

github-actions[bot] avatar Jan 08 '21 00:01 github-actions[bot]