Runner for hugo-build is not functioning #18

Closed
opened 2026-11-05 15:49:26 +00:00 by yarikoptic · 3 comments
Member

spotted while reviewing

image

making it impossible to assess quickly if could even be built/merged

spotted while reviewing - #17 by @wjm ![image](/attachments/2fdd40cb-dbe8-40f9-89d2-9782608f4231) making it impossible to assess quickly if could even be built/merged
image.png
249 KiB
Author
Member

oddly image is not even rendered for me in the issue :-/ it is a challenging day today (again!) ;-)

image

oddly image is not even rendered for me in the issue :-/ it is a challenging day today (again!) ;-) ![image](/attachments/c0d888f9-71ad-46f2-86ce-81165285986c)
Contributor

Just to confirm that the site builds locally with hugo v0.169.0. Renders with cover.

Just to confirm that the site builds locally with hugo v0.169.0. Renders with cover.
Member

I think the "hugo-latest" runner was retired as we switched other Forgejo deployments to use git-pages (I don't know if datalad-hub has git-pages).

Someone with access to this repository settings could look up, in the actions section, which labels are advertised by available runners. After looking at the hugo-build.yml action, it could be that a re-write is justified, but I think switching to something more generic like ubuntu-latest or debian-latest (whatever is available) and adding an explicit "install hugo" step with the standard GitHub action might work (I didn't try, and 0.154.5 is just because that's the latest one I have installed):

diff --git a/.forgejo/workflows/hugo-build.yml b/.forgejo/workflows/hugo-build.yml
index 7c4c89e491..3f18dc50bc 100644
--- a/.forgejo/workflows/hugo-build.yml
+++ b/.forgejo/workflows/hugo-build.yml
@@ -12,9 +12,14 @@
 jobs:
   hugo-build:
     name: Hugo site build
-    runs-on: hugo-latest
+    runs-on: debian-latest

     steps:
+      - name: Setup hugo
+        uses: https://github.com/peaceiris/actions-hugo@v3
+        with:
+          hugo-version: '0.154.5'
+          extended: true
       - name: Checkout
         uses: https://hub.datalad.org/forgejo/datalad-clone-action@v1
         with:

I think the "hugo-latest" runner was retired as we switched other Forgejo deployments to use git-pages (I don't know if datalad-hub has git-pages). Someone with access to this repository settings could look up, in the actions section, which labels are advertised by available runners. After looking at the `hugo-build.yml` action, it could be that a re-write is justified, but I think switching to something more generic like `ubuntu-latest` or `debian-latest` (whatever is available) and adding an explicit "install hugo" step with the standard GitHub action *might* work (I didn't try, and 0.154.5 is just because that's the latest one I have installed): ```diff diff --git a/.forgejo/workflows/hugo-build.yml b/.forgejo/workflows/hugo-build.yml index 7c4c89e491..3f18dc50bc 100644 --- a/.forgejo/workflows/hugo-build.yml +++ b/.forgejo/workflows/hugo-build.yml @@ -12,9 +12,14 @@ jobs: hugo-build: name: Hugo site build - runs-on: hugo-latest + runs-on: debian-latest steps: + - name: Setup hugo + uses: https://github.com/peaceiris/actions-hugo@v3 + with: + hugo-version: '0.154.5' + extended: true - name: Checkout uses: https://hub.datalad.org/forgejo/datalad-clone-action@v1 with: ```
Sign in to join this conversation.
No labels
No milestone
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
www/datalad-blog#18
No description provided.