mirror of
https://git.bjxgj.com/xgj/xgj-actions.git
synced 2025-10-14 06:33:37 +08:00
fix: 在 GitHub Action 中显式指定 bash 执行脚本
This commit is contained in:
@@ -64,7 +64,7 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- name: 配置 Git
|
- name: 配置 Git
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ${{ github.action_path }}/scripts/configure-git.sh
|
run: bash ${{ github.action_path }}/scripts/configure-git.sh
|
||||||
env:
|
env:
|
||||||
GIT_USER_NAME: ${{ inputs.git-user-name }}
|
GIT_USER_NAME: ${{ inputs.git-user-name }}
|
||||||
GIT_USER_EMAIL: ${{ inputs.git-user-email }}
|
GIT_USER_EMAIL: ${{ inputs.git-user-email }}
|
||||||
@@ -72,7 +72,7 @@ runs:
|
|||||||
- name: 校验工具可用性
|
- name: 校验工具可用性
|
||||||
id: validate-tools
|
id: validate-tools
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ${{ github.action_path }}/scripts/validate-tools.sh
|
run: bash ${{ github.action_path }}/scripts/validate-tools.sh
|
||||||
env:
|
env:
|
||||||
CHECK_DOCKER: ${{ inputs.require-docker }}
|
CHECK_DOCKER: ${{ inputs.require-docker }}
|
||||||
CHECK_KUBECTL: ${{ inputs.require-kubectl }}
|
CHECK_KUBECTL: ${{ inputs.require-kubectl }}
|
||||||
@@ -80,7 +80,7 @@ runs:
|
|||||||
- name: 配置 kubectl
|
- name: 配置 kubectl
|
||||||
if: ${{ inputs.kube-config != '' && inputs.require-kubectl != 'false' }}
|
if: ${{ inputs.kube-config != '' && inputs.require-kubectl != 'false' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ${{ github.action_path }}/scripts/configure-kubectl.sh
|
run: bash ${{ github.action_path }}/scripts/configure-kubectl.sh
|
||||||
env:
|
env:
|
||||||
KUBE_CONFIG_BASE64: ${{ inputs.kube-config }}
|
KUBE_CONFIG_BASE64: ${{ inputs.kube-config }}
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ runs:
|
|||||||
id: verify-kubectl
|
id: verify-kubectl
|
||||||
if: ${{ inputs.kube-config != '' && inputs.verify-kubectl-cluster != 'false' && inputs.require-kubectl != 'false' }}
|
if: ${{ inputs.kube-config != '' && inputs.verify-kubectl-cluster != 'false' && inputs.require-kubectl != 'false' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ${{ github.action_path }}/scripts/verify-kubectl.sh
|
run: bash ${{ github.action_path }}/scripts/verify-kubectl.sh
|
||||||
|
|
||||||
- name: 登录私有 Docker 仓库
|
- name: 登录私有 Docker 仓库
|
||||||
if: ${{ inputs.skip-docker-login != 'true' }}
|
if: ${{ inputs.skip-docker-login != 'true' }}
|
||||||
|
Reference in New Issue
Block a user