Skip to content

Commit

Permalink
fix: netsim branch CI default (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu authored Jul 10, 2023
1 parent b0ccea5 commit a8435eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/netsim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,20 @@ jobs:
- name: Detect chuck branch
if: github.event_name == 'issue_comment'
id: detect_chuck_branch
shell: bash
run: |
a='${{ github.event.comment.body }}'
branch="main"
if [[ $a == '/netsim branch'* ]];
then
a=$(echo "$a" | tr '\n' ' ' | tr -s " " | cut -d ' ' -f3)
branch="$a"
echo "CHUCK_BRANCH=$branch" >> ${GITHUB_ENV}
else
echo "CHUCK_BRANCH=main" >> ${GITHUB_ENV}
fi
echo "CHUCK_BRANCH=$branch" >> ${GITHUB_ENV}
- name: Fetch and build chuck
shell: bash
run: |
cd ..
rm -rf chuck
Expand Down

0 comments on commit a8435eb

Please sign in to comment.