Skip to content

Commit

Permalink
fix missing branch
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Jan 12, 2025
1 parent cd2133c commit 2897388
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/import-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ jobs:
ref=$(cd ebusd-configuration${suffix} && git rev-parse HEAD)
shortref=$(cd ebusd-configuration${suffix} && git rev-parse --short HEAD)
branch=$(egrep "submodule |branch =" .gitmodules |egrep -A1 "submodule \"ebusd-configuration${suffix}\""|egrep branch|head -n 1|sed -e 's#.*= *##')
branch=${branch:-master}
cat mapping.md.tmpl | sed -e "s#\$date#$date#g" -e "s#\$ref#$ref#g" -e "s#\$shortref#$shortref#g" -e "s#\$branch#$branch#g" > ${subdir}/mapping.md
((cd ebusd-configuration${suffix}/src/ && find . -type d) | xargs -L1 ./.github/workflows/genmapping.sh ${subdir}/mapping.md ebusd-configuration${suffix}/src $branch)
((cd ebusd-configuration${suffix}/src/ && find . -type d) | xargs -i ./.github/workflows/genmapping.sh "${subdir}/mapping.md" "ebusd-configuration${suffix}/src" "$branch" "{}")
- name: Unstash versions
continue-on-error: true
run: |
Expand Down

0 comments on commit 2897388

Please sign in to comment.