[GH-ISSUE #16] Environment variables must be strings #7

Closed
opened 2026-03-01 21:39:04 +03:00 by kerem · 1 comment
Owner

Originally created by @UncannyBingo on GitHub (Jan 21, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/16

GitHub requires that all values to environment variables be strings—not, for example, integers. Act will heppily accept integers, however.

Here is an example workflow that act will execute, but that GitHub will reject:

workflow "Launch the rescue mission" {
  on = "release"
  resolves = ["debug"]
}

action "debug" {
  uses = "actions/bin/debug"
  env = {
    ENV_VAR = 1
    }
}

GitHub, on the other hand, requires something like

workflow "Launch the rescue mission" {
  on = "release"
  resolves = ["debug"]
}

action "debug" {
  uses = "actions/bin/debug"
  env = {
    ENV_VAR = "1"
    }
}

(notice the "1" in quotes)

Originally created by @UncannyBingo on GitHub (Jan 21, 2019). Original GitHub issue: https://github.com/nektos/act/issues/16 GitHub requires that all values to environment variables be strings—not, for example, integers. Act will heppily accept integers, however. Here is an example workflow that act will execute, but that GitHub will reject: ``` workflow "Launch the rescue mission" { on = "release" resolves = ["debug"] } action "debug" { uses = "actions/bin/debug" env = { ENV_VAR = 1 } } ``` GitHub, on the other hand, requires something like ``` workflow "Launch the rescue mission" { on = "release" resolves = ["debug"] } action "debug" { uses = "actions/bin/debug" env = { ENV_VAR = "1" } } ``` (notice the "1" in quotes)
kerem closed this issue 2026-03-01 21:39:04 +03:00
Author
Owner

@UncannyBingo commented on GitHub (Jan 21, 2019):

(BTW, thank you for this very awesome tool!)

<!-- gh-comment-id:456026665 --> @UncannyBingo commented on GitHub (Jan 21, 2019): (BTW, _thank you_ for this very awesome tool!)
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#7
No description provided.