[GH-ISSUE #509] Cannot read property 'slice' of undefined #348

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

Originally created by @cscetbon on GitHub (Jan 29, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/509

Trying to run act (0.2.19) with my workflow I get the following error:

[Compatibility casskop/cass-operator/scaleup-gke        ] 🚀  Start image=catthehacker/ubuntu:act-latest
[Compatibility casskop/cass-operator/scaleup-gke        ]   🐳  docker run image=catthehacker/ubuntu:act-latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Compatibility casskop/cass-operator/scaleup-gke        ] ⭐  Run Disallow Concurrent Runs
[Compatibility casskop/cass-operator/scaleup-gke        ]   ☁  git clone 'https://github.com/byu-oit/github-action-disallow-concurrent-runs' # ref=v1
[Compatibility casskop/cass-operator/scaleup-gke        ]   🐳  docker cp src=/Users/cscetbon/.cache/act/byu-oit-github-action-disallow-concurrent-runs@v1 dst=/actions/
[Compatibility casskop/cass-operator/scaleup-gke        ]   ❗  ::error::An error occurred: Cannot read property 'slice' of undefined
[Compatibility casskop/cass-operator/scaleup-gke        ]   ❌  Failure - Disallow Concurrent Runs
Originally created by @cscetbon on GitHub (Jan 29, 2021). Original GitHub issue: https://github.com/nektos/act/issues/509 Trying to run act (0.2.19) with [my workflow](https://github.com/cscetbon/cass-operator-casskop-compat/blob/master/.github/workflows/run-kuttl-tests.yml ) I get the following error: ``` [Compatibility casskop/cass-operator/scaleup-gke ] 🚀 Start image=catthehacker/ubuntu:act-latest [Compatibility casskop/cass-operator/scaleup-gke ] 🐳 docker run image=catthehacker/ubuntu:act-latest entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Compatibility casskop/cass-operator/scaleup-gke ] ⭐ Run Disallow Concurrent Runs [Compatibility casskop/cass-operator/scaleup-gke ] ☁ git clone 'https://github.com/byu-oit/github-action-disallow-concurrent-runs' # ref=v1 [Compatibility casskop/cass-operator/scaleup-gke ] 🐳 docker cp src=/Users/cscetbon/.cache/act/byu-oit-github-action-disallow-concurrent-runs@v1 dst=/actions/ [Compatibility casskop/cass-operator/scaleup-gke ] ❗ ::error::An error occurred: Cannot read property 'slice' of undefined [Compatibility casskop/cass-operator/scaleup-gke ] ❌ Failure - Disallow Concurrent Runs ```
kerem closed this issue 2026-03-01 21:42:34 +03:00
Author
Owner

@catthehacker commented on GitHub (Jan 29, 2021):

Use if: to run it only on GitHub Actions

      - name: Disallow Concurrent Runs
        uses: byu-oit/github-action-disallow-concurrent-runs@v1
        if: env.GITHUB_ACTIONS == true
        with:
          token: ${{ github.token }}
<!-- gh-comment-id:770058185 --> @catthehacker commented on GitHub (Jan 29, 2021): Use `if:` to run it only on GitHub Actions ```yaml - name: Disallow Concurrent Runs uses: byu-oit/github-action-disallow-concurrent-runs@v1 if: env.GITHUB_ACTIONS == true with: token: ${{ github.token }} ```
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#348
No description provided.