Skip to content

Commit 4eb6123

Browse files
authored
Merge pull request #4470 from DataDog/tonycthsu/fix-milestone-job
Fix milestone job
2 parents fb1935b + 8389619 commit 4eb6123

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/add-milestone-to-pull-requests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
# Parse the gemspec and return the major version
2424
id: version
2525
run: |
26-
echo "name=version::$(find . -name "*.gemspec" | ruby -ne "puts Gem::Specification.load($_.chomp).version.to_s.split(\".\").first")" >> "$GITHUB_OUTPUT"
26+
VERSION=$(ruby -e "puts Gem::Specification.load(Dir.glob('*.gemspec').first).version.to_s.split('.').first")
27+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
2728
2829
- name: Get project milestones
2930
id: milestones

0 commit comments

Comments
 (0)