[GH-ISSUE #1836] Case sensitivity on platform substitution #893

Closed
opened 2026-03-01 21:47:13 +03:00 by kerem · 3 comments
Owner

Originally created by @xsaero00 on GitHub (Jun 2, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1836

With WF like this

name: Test

on: [pull_request]

jobs:
  test:
    runs-on: Enterprise-Runner

    steps:
      - run: echo "hi"

the command act pull_request -P Enterprise-Runner=catthehacker/ubuntu:act-latest fails but the command act pull_request -P enterprise-runner=catthehacker/ubuntu:act-latest works. The custom runner label has to be defined in lowercase for substitution to work.

$ act pull_request -P Enterprise-Runner=catthehacker/ubuntu:act-latest
[Test/test] 🚧  Skipping unsupported platform -- Try running with `-P Enterprise-Runner=...`
$ act pull_request -P enterprise-runner=catthehacker/ubuntu:act-latest
[Test/test] 🚀  Start image=catthehacker/ubuntu:act-latest
[Test/test]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Test/test]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Test/test]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[Test/test] ⭐ Run Main echo "hi"
[Test/test]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0] user= workdir=
| hi
[Test/test]   ✅  Success - Main echo "hi"

Running on Windows 10 in Git Bash

$ act --version
act version 0.2.46
$ uname -a
MINGW64_NT-10.0-19045 SAC-BP3M8D3LT 3.1.7-340.x86_64 2021-03-26 22:17 UTC x86_64 Msys

Originally created by @xsaero00 on GitHub (Jun 2, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1836 With WF like this ```yaml name: Test on: [pull_request] jobs: test: runs-on: Enterprise-Runner steps: - run: echo "hi" ``` the command ` act pull_request -P Enterprise-Runner=catthehacker/ubuntu:act-latest` fails but the command `act pull_request -P enterprise-runner=catthehacker/ubuntu:act-latest` works. The custom runner label has to be defined in lowercase for substitution to work. ```bash $ act pull_request -P Enterprise-Runner=catthehacker/ubuntu:act-latest [Test/test] 🚧 Skipping unsupported platform -- Try running with `-P Enterprise-Runner=...` ``` ```bash $ act pull_request -P enterprise-runner=catthehacker/ubuntu:act-latest [Test/test] 🚀 Start image=catthehacker/ubuntu:act-latest [Test/test] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true [Test/test] 🐳 docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Test/test] 🐳 docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [Test/test] ⭐ Run Main echo "hi" [Test/test] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0] user= workdir= | hi [Test/test] ✅ Success - Main echo "hi" ``` Running on Windows 10 in Git Bash ```bash $ act --version act version 0.2.46 $ uname -a MINGW64_NT-10.0-19045 SAC-BP3M8D3LT 3.1.7-340.x86_64 2021-03-26 22:17 UTC x86_64 Msys ```
kerem 2026-03-01 21:47:13 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@tomasmota commented on GitHub (Jun 12, 2023):

Hey, I'd like to try fixing this

<!-- gh-comment-id:1587659150 --> @tomasmota commented on GitHub (Jun 12, 2023): Hey, I'd like to try fixing this
Author
Owner

@tomasmota commented on GitHub (Jun 12, 2023):

Maybe a maintainer could confirm that this is indeed a bug, not intended behaviour?

<!-- gh-comment-id:1587950375 --> @tomasmota commented on GitHub (Jun 12, 2023): Maybe a maintainer could confirm that this is indeed a bug, not intended behaviour?
Author
Owner

@github-actions[bot] commented on GitHub (Dec 10, 2023):

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

<!-- gh-comment-id:1848789634 --> @github-actions[bot] commented on GitHub (Dec 10, 2023): Issue is stale and will be closed in 14 days unless there is new activity
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#893
No description provided.