chore(ci): fix shell

This commit is contained in:
xilesun 2024-11-06 17:01:12 +08:00
parent 2fcdfb78c6
commit 98273f1275
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ jobs:
steps: steps:
- name: Get info - name: Get info
id: get-info id: get-info
shell: bash
run: | run: |
if [[ "${{ inputs.version }}" == "alpha" || ${{ github.ref_name }} =~ "alpha" ]]; then if [[ "${{ inputs.version }}" == "alpha" || ${{ github.ref_name }} =~ "alpha" ]]; then
echo "branch=$(echo 'next')" >> $GITHUB_OUTPUT echo "branch=$(echo 'next')" >> $GITHUB_OUTPUT

View File

@ -17,6 +17,7 @@ jobs:
steps: steps:
- name: Get info - name: Get info
id: get-info id: get-info
shell: bash
run: | run: |
if [[ "${{ github.ref_name }}" =~ "beta" ]]; then if [[ "${{ github.ref_name }}" =~ "beta" ]]; then
echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT
@ -111,6 +112,7 @@ jobs:
steps: steps:
- name: Get info - name: Get info
id: get-info id: get-info
shell: bash
run: | run: |
if [[ "${{ github.ref_name }}" =~ "beta" ]]; then if [[ "${{ github.ref_name }}" =~ "beta" ]]; then
echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT