mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-17 13:54:17 +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}}
|
token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|
||||||
- name: Config Git User
|
- name: Config Git User
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "${{ github.actor }}"
|
git config --global user.name "${{ github.actor }}"
|
||||||
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Update submodules
|
- name: Update submodules
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git submodule sync
|
git submodule sync
|
||||||
git submodule foreach --quiet '
|
git submodule foreach --quiet "
|
||||||
tag="$(git describe --tags --abbrev=0 origin/HEAD)"
|
tag="$(git describe --tags --abbrev=0 origin/HEAD)"
|
||||||
if [ "$(git describe --tags)" != "$tag" ]; then
|
if [ "$(git describe --tags)" != "$tag" ]; then
|
||||||
git checkout --quiet "$tag"
|
git checkout --quiet "$tag"
|
||||||
echo "$name updated to $tag"
|
echo "$name updated to $tag"
|
||||||
fi
|
fi
|
||||||
'
|
"
|
||||||
|
|
||||||
if git diff --quiet; then
|
if git diff --quiet; then
|
||||||
echo "No updates for submodules."
|
echo "No updates for submodules."
|
||||||
|
|||||||
Reference in New Issue
Block a user