vsoch / pull-request-action

open a pull request when a branch is pushed or updated
https://github.com/marketplace/actions/pull-request-action
MIT License
174 stars 62 forks source link

Cannot index string with string "head" #35

Closed ALefaux closed 4 years ago

ALefaux commented 4 years ago

Hi! I started using your actions two weeks ago and all works fine. I modified some code for my PR and the actions doesn't work with this error :

Enter host password for user 'ALefaux':
jq: error (at <stdin>:4): Cannot index string with string "head"
vsoch commented 4 years ago

Could you please share the "code you modified for your PR" and enough to reproduce your error?

ALefaux commented 4 years ago
name: Open pull request after push

on:
  push:
    branches:
      - '*/*'

jobs:
  open-pull-request:
    name: Open the pull request
    runs-on: ubuntu-latest

    steps:
      - name: open-pull-request-action
        uses: vsoch/pull-request-action@1.0.6
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          PULL_REQUEST_BRANCH: "master"
          PULL_REQUEST_ASSIGNEES: "ALefaux"
vsoch commented 4 years ago

Thank you! Could you please link me to the action, where it ran, so I can take a look?

ALefaux commented 4 years ago

Maybe it's my repo the problem ... https://github.com/ALefaux/AND_Pollochon/actions/runs/112728233

vsoch commented 4 years ago

I'm seeing a lot of random errors (500 and otherwise) from GitHub today, and also problems with my own actions, so if it's okay with you I think we should wait for the dust to settle.

ALefaux commented 4 years ago

You are right. It works today. Sorry to have disturbed you.

vsoch commented 4 years ago

Oh gosh, it's really no worries! If there is a bug, it's the right thing to do to report it. I'm glad that you were proactive in doing this, it's not your fault that GitHub was having issues.