Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TS-358] line 8: syntax error: unexpected end of file #113

Closed
abhi-markan opened this issue Apr 28, 2023 · 6 comments
Closed

[TS-358] line 8: syntax error: unexpected end of file #113

abhi-markan opened this issue Apr 28, 2023 · 6 comments

Comments

@abhi-markan
Copy link

Introduction

Ever since latest merge, all Codacy GHAs are failing with same error messages (testes on numerous public repositories).

Error: line 8: syntax error: unexpected end of file

Run echo "CODACY_BASE_URL_OR_DEFAULT=$(if [  ]; then echo ""; else echo "https://api.codacy.com/"; fi)" >> $GITHUB_ENV
  echo "CODACY_BASE_URL_OR_DEFAULT=$(if [  ]; then echo ""; else echo "https://api.codacy.com/"; fi)" >> $GITHUB_ENV
  echo "OWNER_NAME=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1)" >> $GITHUB_ENV
  echo "REPOSITORY_NAME=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 2)" >> $GITHUB_ENV
  echo "ORGANIZATION_PROVIDER=$(if [ "$GITHUB_SERVER_URL" == "https://github.com" ]; then echo "gh"; else echo "ghe"; fi)" >> $GITHUB_ENV
  echo "COMMIT_SHA=$(if [ pull_request == "pull_request" ]; then echo "0ad579b700a2694690164bd5a80b71cc0e6891fe"; else echo "d72a73cd0a4ca22ec081e4d3[12](https://github.com/UK-Export-Finance/exip/actions/runs/4833369723/jobs/8613291873?pr=451#step:3:13)674652acbbb5ca"; fi)" >> $GITHUB_ENV
  if [ -n "" ]; then
    echo "SKIP_CONTAINER_ENGINE_CHECK=" >> $GITHUB_ENV
    
    e08742c6-7c79-42f1-8745-7acba0104a6e.sh: line 8: syntax error: unexpected end of file
@github-actions github-actions bot changed the title line 8: syntax error: unexpected end of file [TS-358] line 8: syntax error: unexpected end of file Apr 28, 2023
@github-actions
Copy link

Internal ticket created : TS-358

@dwertent
Copy link

@zethuman
Copy link

zethuman commented May 1, 2023

+ 1 same error

@dan-istoc-k24
Copy link

i have the same issue, is there any temporary fix?

@DMarinhoCodacy
Copy link
Contributor

Hello all,
We found an issue in the latest changes, and we already fix it. Can you please re-run your jobs?
Thanks for the tip @bjarkebm !
Support team @ Codacy

@McPringle
Copy link

I can confirm it works! Thank you very much for your fast fix and for providing this service!

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

No branches or pull requests

6 participants