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

deployment fails with "error: wrong number of arguments, should be 2" #71

Closed
flxzt opened this issue Mar 26, 2023 · 4 comments
Closed

Comments

@flxzt
Copy link

flxzt commented Mar 26, 2023

see:

https://github.com/flxzt/mercury/actions/runs/4523922956/jobs/7967401062

I am using the example shown in the readme:

name: Zola on GitHub Pages

on: 
 push:
  branches:
   - main

jobs:
  build:
    name: Publish site
    runs-on: ubuntu-latest
    steps:
    - name: Checkout main
      uses: actions/checkout@v3.0.0
    - name: Build and deploy
      uses: shalzz/zola-deploy-action@v0.17.2
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Deuchnord added a commit to Kosmorro/website that referenced this issue Apr 2, 2023
Temporary fix until this issue has a fix:
shalzz/zola-deploy-action#71
Deuchnord added a commit to Kosmorro/website that referenced this issue Apr 2, 2023
Temporary fix until this issue has a fix:
shalzz/zola-deploy-action#71
Deuchnord added a commit to Kosmorro/website that referenced this issue Apr 2, 2023
Temporary fix until this issue has a fix:
shalzz/zola-deploy-action#71
Deuchnord added a commit to Kosmorro/website that referenced this issue Apr 2, 2023
Temporary fix until this issue has a fix:
shalzz/zola-deploy-action#71
@shalzz
Copy link
Owner

shalzz commented Apr 10, 2023

The latest commit branch should resolve this. Try using uses: shalzz/zola-deploy-action@master in your workflow file.

Also if you're building a site without a theme submodule, disable pulling in the submodule with the BUILD_THEMES flag mentioned here: https://github.com/shalzz/zola-deploy-action#environment-variables

@flxzt
Copy link
Author

flxzt commented Apr 10, 2023

that fixed it. thanks!

@flxzt flxzt closed this as completed Apr 10, 2023
@muzimuzhi
Copy link

The actions/checkout action learnt a new input set-safe-directory: <path> since v3 (see actions/checkout@0ffe6f9), so I think sth like

      - uses: actions/checkout@v3
        with:
          set-safe-directory: '*'

should work as well.

@florianhumblot
Copy link

The latest commit branch should resolve this. Try using uses: shalzz/zola-deploy-action@master in your workflow file.

Also if you're building a site without a theme submodule, disable pulling in the submodule with the BUILD_THEMES flag mentioned here: https://github.com/shalzz/zola-deploy-action#environment-variables

any way to make this a new release so that we can pin our action workflows to that instead of a potentially changing master?

goingforbrooke added a commit to goingforbrooke/goingforbrooke.github.io that referenced this issue Apr 30, 2023
goingforbrooke added a commit to goingforbrooke/goingforbrooke.github.io that referenced this issue Apr 30, 2023
bhodrolok added a commit to bhodrolok/bhodrolok.github.io that referenced this issue May 12, 2023
pauleaster added a commit to pauleaster/pauleaster.github.io that referenced this issue Jun 1, 2023
pauleaster added a commit to pauleaster/pauleaster.github.io that referenced this issue Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants