Skip to content

Commit 10bcbd4

Browse files
committed
refactor: fetch tags inside the loop
1 parent d394732 commit 10bcbd4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,11 @@ jobs:
6161
with:
6262
submodules: true
6363
- name: fetch Rails tags
64+
working-directory: rails
6465
run: |
65-
cd rails && git fetch --depth=1 origin \
66-
refs/tags/v8*:refs/tags/v8* \
67-
refs/tags/v7*:refs/tags/v7* \
68-
refs/tags/v6*:refs/tags/v6* \
69-
refs/tags/v5.2*:refs/tags/v5.2*
66+
for version in v8 v7 v6 v5.2; do
67+
git fetch --depth=1 origin refs/tags/${version}*:refs/tags/${version}*
68+
done
7069
- uses: ruby/setup-ruby@v1
7170
with:
7271
ruby-version: 2.7

0 commit comments

Comments
 (0)