Skip to content

Commit 1fe00a4

Browse files
committed
refactor: Fetch rails tags inside the loop
1 parent eec49aa commit 1fe00a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)