From ff2c6790b3293bd265b4274be29f3dbfcb260cca Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Wed, 22 Jan 2025 18:46:02 +0100 Subject: [PATCH] feat: actions: verify that container.options --hostname is valid Refs: https://code.forgejo.org/forgejo/act/pulls/95 --- actions/example-config-options/.forgejo/workflows/test.yml | 4 ++++ actions/example-config-options/runner-config.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/actions/example-config-options/.forgejo/workflows/test.yml b/actions/example-config-options/.forgejo/workflows/test.yml index 83b6b0a..d9c0324 100644 --- a/actions/example-config-options/.forgejo/workflows/test.yml +++ b/actions/example-config-options/.forgejo/workflows/test.yml @@ -3,6 +3,8 @@ on: [push] jobs: test: runs-on: docker + container: + options: "--hostname customname" steps: - run: | test -f /srv/example-config-options-volume-valid @@ -10,3 +12,5 @@ jobs: ! test -f /srv/example-config-options-volume-invalid - run: | test "$FROB" = "NITZ" + - run: | + test "$(cat /etc/hostname)" = customname diff --git a/actions/example-config-options/runner-config.yaml b/actions/example-config-options/runner-config.yaml index 13b9b72..dff5356 100644 --- a/actions/example-config-options/runner-config.yaml +++ b/actions/example-config-options/runner-config.yaml @@ -1,6 +1,7 @@ log: level: debug + job_level: debug runner: file: .runner