Hello,
I tried to generate a file and push it to the repository, but I receive the error:syntax error: unexpected end of file whenI try to set the user.email.
The action configuration:
name: generate-index on: push: branches: - master paths: - resume.json jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/npm@master - name: Install jsonresume and generate run: | npm install resume-cli npm install jsonresume-theme-classy ./node_modules/.bin/resume export index.html --theme classy - name: Git push env: GIT_OWNER_EMAIL: ${{ secrets.GIT_OWNER_EMAIL }} GIT_OWNER_NAME: ${{ secrets.GIT_OWNER_NAME }} GIT_REMOTE_URL: ${{ secrets.GIT_REMOTE_URL }} run: | git config user.email "$GIT_OWNER_EMAIL" git config user.name "$GIT_OWNER_NAME" if [[ `git status --porcelain` ]]; then git add index.html git commit -a -m 'Updated index' git remote rm origin git remote add origin $GIT_REMOTE_URL git push origin HEAD:master
Secrets panel:
The action's output:
Also, here it is the link to the repository: https://github.com/claudiunicolaa/claudiunicola.xyz
Solved! Solved! Go to Solution.
Well, I tried a lot of things but nothing regarding the "if" statement. :))
Thanks.