github-autopr icon indicating copy to clipboard operation
github-autopr copied to clipboard

Jq compile error

Open phileo99 opened this issue 4 years ago • 1 comments

I tried adding this Github action to my .workflow folder, but when it runs, it always fails with the same error:

Run funivan/[email protected]
  with:
    args: repository.default_branch .*-pr
  env:
    GITHUB_TOKEN: ***
/usr/bin/docker run --name a33c12845697fb37e4823b0442ebc8684acce_526efe --label 8a33c1 --workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/android-mhp/android-mhp":"/github/workspace" 8a33c1:2845697fb37e4823b0442ebc8684acce repository.default_branch .*-pr
~~~~ Start Creating PR action  ~~~~
jq: error: repository/0 is not defined at <top-level>, line 1:
repository.default_branch
jq: 1 compile error

phileo99 avatar Jul 22 '21 17:07 phileo99

Hello @phileo99 It seems that you forget to add . (dot) at the beginning of the argument:

with:
  args: .repository.default_branch .*-pr

funivan avatar Aug 02 '21 09:08 funivan