fix: 在 GitHub Action 中显式指定 bash 执行脚本

This commit is contained in:
Lyda
2025-10-11 18:36:06 +08:00
parent 5c74c75f48
commit 425b35a08a

View File

@@ -64,7 +64,7 @@ runs:
steps:
- name: 配置 Git
shell: bash
run: ${{ github.action_path }}/scripts/configure-git.sh
run: bash ${{ github.action_path }}/scripts/configure-git.sh
env:
GIT_USER_NAME: ${{ inputs.git-user-name }}
GIT_USER_EMAIL: ${{ inputs.git-user-email }}
@@ -72,7 +72,7 @@ runs:
- name: 校验工具可用性
id: validate-tools
shell: bash
run: ${{ github.action_path }}/scripts/validate-tools.sh
run: bash ${{ github.action_path }}/scripts/validate-tools.sh
env:
CHECK_DOCKER: ${{ inputs.require-docker }}
CHECK_KUBECTL: ${{ inputs.require-kubectl }}
@@ -80,7 +80,7 @@ runs:
- name: 配置 kubectl
if: ${{ inputs.kube-config != '' && inputs.require-kubectl != 'false' }}
shell: bash
run: ${{ github.action_path }}/scripts/configure-kubectl.sh
run: bash ${{ github.action_path }}/scripts/configure-kubectl.sh
env:
KUBE_CONFIG_BASE64: ${{ inputs.kube-config }}
@@ -88,7 +88,7 @@ runs:
id: verify-kubectl
if: ${{ inputs.kube-config != '' && inputs.verify-kubectl-cluster != 'false' && inputs.require-kubectl != 'false' }}
shell: bash
run: ${{ github.action_path }}/scripts/verify-kubectl.sh
run: bash ${{ github.action_path }}/scripts/verify-kubectl.sh
- name: 登录私有 Docker 仓库
if: ${{ inputs.skip-docker-login != 'true' }}