Skip to content

Commit

Permalink
Fixes git log paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
tommie committed Dec 30, 2023
1 parent 3bad195 commit 69f2de2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/syncsubdeps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
xargs -r dirname | \
xargs -rn1 basename | \
while read os_arch; do
echo "github.com/${{ github.repository }}/deps/$os_arch"
echo "deps/$os_arch"
done)
)
# This is the latest commit affecting any file in the submodules.
# Thus, this workflow is idempotent.
sha="$(git log -n 1 --pretty=format:%H "${submods[@]}")"
sha="$(git log -n 1 --pretty=format:%H -- "${submods[@]}")"
echo "submodules=${submods[*]}" >>"$GITHUB_OUTPUT"
echo "sha=$sha" >>"$GITHUB_OUTPUT"
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Update go.mod
run: |
sha="${{ steps.info.outputs.sha }}"
submods=( $(for submod in ${{ steps.info.outputs.submodules }}; do echo "$submod@$sha" ; done) )
submods=( $(for submod in ${{ steps.info.outputs.submodules }}; do echo "github.com/${{ github.repository }}/$submod@$sha" ; done) )
go get "${submods[@]}"
- id: create_pr
Expand Down

0 comments on commit 69f2de2

Please sign in to comment.