branch_name

This commit is contained in:
Andrey 2024-05-30 18:12:36 -04:00
parent 0afefe4922
commit d8820504a4
1 changed files with 15 additions and 1 deletions

View File

@ -17,4 +17,18 @@ jobs:
- name: Echo Inputs
run: |
echo ${{toJSON(inputs.branch_name)}}
echo "branch_name=[${{toJSON(inputs.branch_name)}}]"
- name: Checkout Submodules
run: |
git submodule update --init --depth=1 ext/devops-sandbox-rusefi
- name: Fetch remote branches of submodule
working-directory: ext/devops-sandbox-rusefi
run: |
git fetch origin '+refs/heads/*:refs/remotes/origin/*'
OUT=$(git branch -r | grep ${{toJSON(inputs.branch_name)}})
echo "OUT1=$OUT"
OUT=$(git branch -r | grep "heads/${{toJSON(inputs.branch_name)}}")
echo "OUT2=$OUT"