[GH-ISSUE #63] git refs for actions do not float to HEAD #39

Closed
opened 2026-03-01 21:39:18 +03:00 by kerem · 0 comments
Owner

Originally created by @maxheld83 on GitHub (May 8, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/63

Steps to reproduce

  1. Use some workflow with 3 actions, one local, several remote, like so:
workflow "Test Action" {
  on = "push",
  resolves = ["Shellcheck", "Test dependency installation"]
}

action "Shellcheck" {
  uses = "actions/bin/shellcheck@1b3c130914f7b20890bf159306137d994a4c39d0"
  args = "*.sh"
}

action "Install Dependencies" {
  uses = "./"
}

action "Test dependency installation" {
  uses = "maxheld83/ghactions_check@master"
  args = "testthat::test_dir(path = \"tests/testthat/\", stop_on_failure = TRUE)"
  needs = "Install Dependencies"
}
  1. run act. Everything works as intended.

  2. git commit git push to the third action "maxheld83/ghactions_check@master"

  3. run act again.

Observed behavior

act uses the old, now outdated version of "maxheld83/ghactions_check@master" and does not float to the latest commit of master.

Expected behavior:

act should always use the latest commit to master; this is how github actions behaves.

Fix

Hardcoding a commit "maxheld83/ghactions_check@78652ea60553d2fd92d256876cd2873264cb9233" solves the problem, but defeats the purpose.

Hunch

maybe a caching problem?

Originally created by @maxheld83 on GitHub (May 8, 2019). Original GitHub issue: https://github.com/nektos/act/issues/63 ### Steps to reproduce 1. Use some workflow with 3 actions, one local, several remote, like so: ``` workflow "Test Action" { on = "push", resolves = ["Shellcheck", "Test dependency installation"] } action "Shellcheck" { uses = "actions/bin/shellcheck@1b3c130914f7b20890bf159306137d994a4c39d0" args = "*.sh" } action "Install Dependencies" { uses = "./" } action "Test dependency installation" { uses = "maxheld83/ghactions_check@master" args = "testthat::test_dir(path = \"tests/testthat/\", stop_on_failure = TRUE)" needs = "Install Dependencies" } ``` 2. run `act`. Everything works as intended. 3. `git commit` `git push` to the **third** action `"maxheld83/ghactions_check@master"` 4. run `act` again. ### Observed behavior `act` uses the old, now outdated version of `"maxheld83/ghactions_check@master"` and does not float to the latest commit of `master`. ### Expected behavior: `act` should always use the latest commit to master; this is how github actions behaves. ### Fix Hardcoding a commit `"maxheld83/ghactions_check@78652ea60553d2fd92d256876cd2873264cb9233"` solves the problem, but defeats the purpose. ### Hunch maybe a caching problem?
kerem 2026-03-01 21:39:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#39
No description provided.