[GH-ISSUE #216] Question: Is it possible to not use a local push.json file? #148

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

Originally created by @awentzel on GitHub (Apr 29, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/216

Is there a command parameter that can be used instead of creating and managing a GitHub Events file. In my case push.json?

The problem Is that we're not comfortably hosting that file in our repository since it points to local user branches and that will frequently be changing.

The preferred solution would be to supply the git branch name as a parameter.

Example Problem file:

{
    "push": {
      "head": {
        "ref": "users/foo/update-action"
      },
      "base": {
        "ref": "users/foo/update-action"
      }
    }
  }

Example solution where -b is git branch name.

act -j build_local_linux -e "push" -b "users/foo/update-action"
Originally created by @awentzel on GitHub (Apr 29, 2020). Original GitHub issue: https://github.com/nektos/act/issues/216 Is there a command parameter that can be used instead of creating and managing a GitHub Events file. In my case `push.json`? The problem Is that we're not comfortably hosting that file in our repository since it points to local user branches and that will frequently be changing. The preferred solution would be to supply the git branch name as a parameter. Example Problem file: ```bash { "push": { "head": { "ref": "users/foo/update-action" }, "base": { "ref": "users/foo/update-action" } } } ``` Example solution where `-b` is git branch name. ```bash act -j build_local_linux -e "push" -b "users/foo/update-action" ```
kerem 2026-03-01 21:40:39 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 29, 2020):

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

<!-- gh-comment-id:650842576 --> @github-actions[bot] commented on GitHub (Jun 29, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@catthehacker commented on GitHub (Aug 28, 2021):

act push -j build_local_linux --defaultbranch "users/foo/update-action"
<!-- gh-comment-id:907674852 --> @catthehacker commented on GitHub (Aug 28, 2021): ```bash act push -j build_local_linux --defaultbranch "users/foo/update-action" ```
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#148
No description provided.