Skip to content

Commit 696de03

Browse files
committed
ci: always use the latest tagged dep releases if they exist
1 parent f5dcd7f commit 696de03

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)