feat: actions: verify that container.options --hostname is valid

Refs: https://code.forgejo.org/forgejo/act/pulls/95
This commit is contained in:
Earl Warren 2025-01-22 18:46:02 +01:00
parent 925c936032
commit ff2c6790b3
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -1,6 +1,7 @@
log:
level: debug
job_level: debug
runner:
file: .runner