Fall back to sh on non-Windows

Fixes https://github.com/actions/upload-pages-artifact/issues/13
This commit is contained in:
Naïm Favier
2022-08-17 00:04:43 +02:00
parent a597aecd27
commit 12e73a1efa

View File

@@ -14,7 +14,7 @@ runs:
using: composite
steps:
- name: Archive artifact
shell: bash
shell: sh
if: runner.os == 'Linux'
run: |
tar \
@@ -29,7 +29,7 @@ runs:
# Switch to gtar (GNU tar instead of bsdtar which is the default in the MacOS runners so we can use --hard-dereference)
- name: Archive artifact
shell: bash
shell: sh
if: runner.os == 'macOS'
run: |
gtar \