mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
fix(ci): update submodules
This commit is contained in:
6
.github/workflows/update-submodules.yml
vendored
6
.github/workflows/update-submodules.yml
vendored
@@ -29,20 +29,22 @@ jobs:
|
||||
token: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
- name: Config Git User
|
||||
shell: bash
|
||||
run: |
|
||||
git config --global user.name "${{ github.actor }}"
|
||||
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
|
||||
- name: Update submodules
|
||||
shell: bash
|
||||
run: |
|
||||
git submodule sync
|
||||
git submodule foreach --quiet '
|
||||
git submodule foreach --quiet "
|
||||
tag="$(git describe --tags --abbrev=0 origin/HEAD)"
|
||||
if [ "$(git describe --tags)" != "$tag" ]; then
|
||||
git checkout --quiet "$tag"
|
||||
echo "$name updated to $tag"
|
||||
fi
|
||||
'
|
||||
"
|
||||
|
||||
if git diff --quiet; then
|
||||
echo "No updates for submodules."
|
||||
|
||||
Reference in New Issue
Block a user