File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,10 @@ jobs:
2020 repository : pkgcraft/pkgcraft-workspace
2121 submodules : recursive
2222
23- - name : Pull submodule updates
24- if : startsWith(github.ref, 'refs/tags/') != true
25- run : git submodule update --recursive --remote
26-
27- - name : Update submodules to the latest tag
28- if : startsWith(github.ref, 'refs/tags/')
29- run : git submodule foreach 'git fetch origin; git checkout $(git describe --tags `git rev-list --tags --max-count=1`);'
23+ - name : Pull submodule updates and checkout the latest tags if they exist
24+ run : |
25+ git submodule update --recursive --remote
26+ git submodule foreach 'git fetch origin; git checkout $(git describe --tags `git rev-list --tags --max-count=1`);'
3027
3128 - name : Remove current repo from workspace
3229 run : rm -rfv ${{ github.event.repository.name }}
You can’t perform that action at this time.
0 commit comments