Skip to content

Commit

Permalink
fix: trim shell command output whitespace (#3041)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrunyan authored Oct 25, 2024
1 parent 01e3e0d commit b062a6c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cd-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,12 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Retrive latest branches
uses: git fetch origin

- name: Get origin branch list
run: |
echo "origin_branch_list=$(git branch -r --list origin/stable)" >> "$GITHUB_ENV"
echo "origin_branch_list=$(git branch -r --list origin/stable | xargs)" >> "$GITHUB_ENV"
- name: Ensure origin/stable branch exists
if: env.origin_branch_list != 'origin/stable'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/cd-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Retrive latest branches
uses: git fetch origin

- name: Get origin branch list
run: |
echo "origin_branch_list=$(git branch -r --list origin/stage)" >> "$GITHUB_ENV"
echo "origin_branch_list=$(git branch -r --list origin/stage | xargs)" >> "$GITHUB_ENV"
- name: Ensure origin/stage branch exists
if: env.origin_branch_list != 'origin/stage'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cd-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Retrive latest branches
uses: git fetch origin
- name: Switch branch to stable
run: git checkout stable
- name: Get commit short hash
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/cd-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,12 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Retrive latest branches
uses: git fetch origin

- name: Get origin branch list
run: |
echo "origin_branch_list=$(git branch -r --list origin/beta)" >> "$GITHUB_ENV"
echo "origin_branch_list=$(git branch -r --list origin/beta | xargs)" >> "$GITHUB_ENV"
- name: Ensure origin/beta branch exists
if: env.origin_branch_list != 'origin/beta'
Expand Down

0 comments on commit b062a6c

Please sign in to comment.