From 23af06a71b303ba3f97922a6df42de629af9eb5e Mon Sep 17 00:00:00 2001 From: Oleksandr Koval Date: Mon, 6 Jan 2025 13:53:35 +0200 Subject: [PATCH] add `shell: bash` where needed --- .github/actions/build-docs/action.yaml | 4 ++++ .github/actions/update-redirect-page/action.yaml | 1 + .github/actions/update-version-selector/action.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/.github/actions/build-docs/action.yaml b/.github/actions/build-docs/action.yaml index c90833f..fa93a9c 100644 --- a/.github/actions/build-docs/action.yaml +++ b/.github/actions/build-docs/action.yaml @@ -36,6 +36,7 @@ runs: using: "composite" steps: - name: Install deps + shell: bash run: | sudo apt install -y cmake sudo apt install -y wget @@ -44,13 +45,16 @@ runs: echo "$(pwd)/doxygen-1.12.0/bin" >> $GITHUB_PATH - name: CMake configuration + shell: bash run: cmake ${{ inputs.cmake_configure_args }} -B ${{ inputs.build_dir }} - name: CMake build + shell: bash run: cmake --build ${{ inputs.build_dir }} --target ${{ inputs.cmake_target }} - name: Get docs version id: get-docs-version + shell: bash run: | subdir=$(basename $(find ${{ inputs.build_dir }}/${{ inputs.docs_dir }} -mindepth 1 -maxdepth 1 -type d | head -n 1)) echo "version=$subdir" >> $GITHUB_OUTPUT diff --git a/.github/actions/update-redirect-page/action.yaml b/.github/actions/update-redirect-page/action.yaml index cff4508..68f11bf 100644 --- a/.github/actions/update-redirect-page/action.yaml +++ b/.github/actions/update-redirect-page/action.yaml @@ -27,6 +27,7 @@ runs: using: "composite" steps: - name: Generate redirect HTML + shell: bash run: | mkdir ${{ inputs.temp_dir }} cat << EOF > ${{ inputs.temp_dir }}/${{ inputs.file_name }} diff --git a/.github/actions/update-version-selector/action.yaml b/.github/actions/update-version-selector/action.yaml index 018c933..0b6db70 100644 --- a/.github/actions/update-version-selector/action.yaml +++ b/.github/actions/update-version-selector/action.yaml @@ -30,6 +30,7 @@ runs: steps: - name: Discover versions id: discover-versions + shell: bash run: | git fetch origin ${{ inputs.docs_branch }} dirs=$(git ls-tree --name-only -d origin/${{ inputs.docs_branch }} | sort -rV)