Skip to content

Commit a5cafda

Browse files
committed
Specify bash shell for CI workflow steps
Explicitly set the shell to bash for build steps that utilize bash-specific syntax, such as parameter expansion, to ensure consistent behavior across different runner environments.
1 parent 1fd73b8 commit a5cafda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525
- name: Build Reason
26+
shell: bash
2627
run: |
2728
branch=${GITHUB_REF##*/}.
2829
if [[ "$branch" = "main." ]]; then
@@ -52,6 +53,7 @@ jobs:
5253
dotnet-version: "10.0.x"
5354
- name: Build Version
5455
id: version
56+
shell: bash
5557
run: |
5658
dotnet tool install --global minver-cli --version 7.0.0
5759
version=$(minver --tag-prefix v --default-pre-release-identifiers "preview.${GIT_BRANCH_SUFFIX}0" --minimum-major-minor 3.0)
@@ -92,6 +94,7 @@ jobs:
9294
scope: "@exceptionless"
9395
- name: Push GitHub CI Packages
9496
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/heads/') && matrix.os == 'ubuntu-latest' && contains(steps.version.outputs.version, '-')
97+
shell: bash
9598
run: |
9699
TAG_BRANCH="${GIT_BRANCH_SUFFIX%.}"
97100
TAG_BRANCH="${TAG_BRANCH:-main}"

0 commit comments

Comments
 (0)