Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

SyntaxError: Unexpected token ' in JSON at position 1 #1

Open
karneaud opened this issue May 15, 2021 · 2 comments
Open

SyntaxError: Unexpected token ' in JSON at position 1 #1

karneaud opened this issue May 15, 2021 · 2 comments

Comments

@karneaud
Copy link

karneaud commented May 15, 2021

Running your action and encountered the subject error

Buildpacks cleared. Next release on fac-lumen-api will detect buildpacks normally.
heroku: Press any key to open up the browser to login or q to exit: undefined:1
['https://github.com/heroku/heroku-buildpack-php.git']
^

SyntaxError: Unexpected token ' in JSON at position 1
at JSON.parse ()
at addBuildpacks (/home/runner/work/_actions/CDNievas/heroku-action/v1.0/index.js:40:27)

My yml

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: CDNievas/[email protected] # This is the action
        with:
          heroku_email: ${{ secrets.HEROKU_EMAIL }}
          heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
          heroku_app_name: "fxxxxxxxx"
          useforce: true
          branch: "release/staging"
          dynamicFiles: true
          procfile: "web: vendor/bin/heroku-php-apache2 public/"
          buildpacks: "['https://github.com/heroku/heroku-buildpack-php.git']"
@CDNievas
Copy link
Owner

I'll check this. Thx!

@Klaudeta
Copy link

I encountered the same issue with buildpacks. I resolved it with escaping the "

buildpacks: "[\"heroku-community/multi-procfile\", \"heroku/nodejs\"]"

But then I bumped into the other issue which I also submitted here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants