workflows: use bash shell explicitly

This forces better error handling as described in [1].

Without this change, bash would *not* run with `-o pipefail`, which
means some errors go unnoticed. By naming `bash` explicitly, `-o
pipefail` is enabled.

1:
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#defaultsrunshell
This commit is contained in:
Wolfgang Walther 2025-06-10 21:59:31 +02:00
commit 0f5e504f9e
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1
19 changed files with 76 additions and 0 deletions

View file

@ -16,6 +16,10 @@ on:
permissions: {}
defaults:
run:
shell: bash
jobs:
periodic-merge:
if: github.repository_owner == 'NixOS'