]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: set DEBUGFAIL to rd.debug when debug logging is enabled
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 1 Dec 2022 16:34:13 +0000 (16:34 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 5 Dec 2022 16:24:02 +0000 (16:24 +0000)
GitHub Actions allow to opt-in to more debug logging both on
web UI and on the command line.

When GitHub Action debug logging is enabled also enable
additional dracut test debugging by setting DEBUGFAIL to rd.debug.

This is particularly useful when re-run failed jobs with
debug logging enabled.

.github/workflows/integration.yml

index 9d7c0aea41060101102a46b9176f96cb6a60a22b..159f6636c0be609fcd5cdca7bc11801cdb9b9dc9 100644 (file)
@@ -4,6 +4,9 @@ on:
     pull_request:
         branches: [ master ]
 
+env:
+    DEBUGFAIL: "${{ secrets.ACTIONS_STEP_DEBUG && 'rd.debug' }}"
+
 jobs:
     basic:
         runs-on: ubuntu-latest