peaceiris / actions-hugo

GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported.
https://github.com/marketplace/actions/hugo-setup
MIT License
1.37k stars 80 forks source link

Action runs are failing with all versions after v2.6.0 #644

Closed deining closed 3 months ago

deining commented 4 months ago

Checklist

Describe your question

I realized that with all commits after version 2.6.0, action runs are failing for my site deployment.

Relevant links

Public repository: https://github.com/deining/vitalcontrol.de YAML config: deploy.yml YAML workflow: failed workflow run

Relevant log output

With version aadc3a98dfd3437f8f97d436ea91b82a73dc85dd, action run fails:

Run peaceiris/actions-hugo@aadc3a98dfd3437f8f97d436ea91b82a73dc85dd
  with:
    hugo-version: 0.122.0
    extended: true
Error: File not found: '/home/runner/work/_actions/peaceiris/actions-hugo/aadc3a98dfd3437f8f97d436ea91b82a73dc85dd/lib/index.js'

With version 2.6.0, action run is fine:

Run peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d
  with:
    hugo-version: 0.122.0
    extended: true
Hugo version: 0.122.0
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/actions_hugo/_temp -f /home/runner/work/_temp/fe0b9540-1f17-463d-b39b-99bcafe2afbc
/home/runner/actions_hugo/bin/hugo version
hugo v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended linux/amd64 BuildDate=2024-01-26T15:54:24Z VendorInfo=gohugoio

Additional context:

With version aadc3a98dfd3437f8f97d436ea91b82a73dc85dd, lib\index.js was deleted from the repo.

ricomariani commented 4 months ago

FWIW it seems that the normal release script creates lib\index.js and then deletes it. That's just how the release process rolls here. The consequence is that only the exact SHA for the published released versions are usable. It seems to be quite intentional.

ricomariani commented 3 months ago

peaceiris/actions-hugo@v3 seems to be working now

deining commented 3 months ago

Just update to peaceiris/actions-hugo@v3. Deployment worked perfectly fine! Thanks for the update! Closing this ticket now.

github-actions[bot] commented 3 months ago

This issue has been LOCKED because of it being resolved!

The issue has been fixed and is therefore considered resolved. If you still encounter this or it has changed, open a new issue instead of responding to solved ones.

Log | Bot Usage