10000 Ensure ruby v3 is installed for changelog generation Β· devlooped/oss@be8f625 Β· GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit be8f625

Browse files
committed
Ensure ruby v3 is installed for changelog generation
1 parent cc6922f commit be8f625

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

β€Ž.github/workflows/changelog.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ jobs:
2424
ref: main
2525
token: ${{ env.GH_TOKEN }}
2626

27+
- name: βš™ ruby
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: 3.0.3
31+
2732
- name: βš™ changelog
2833
run: |
29-
sudo gem install github_changelog_generator
34+
gem install github_changelog_generator
3035
github_changelog_generator --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md --config-file .github/.github_changelog_generator
3136
3237
- name: πŸš€ changelog

β€Ž.github/workflows/release-notes.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,21 @@ jobs:
2020
- name: 🏷 since
2121
run: echo "SINCE_TAG=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))" >> $GITHUB_ENV
2222

23+
- name: βš™ ruby
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: 3.0.3
27+
2328
- name: βš™ changelog
2429
if: env.SINCE_TAG != ''
2530
run: |
26-
sudo gem install github_changelog_generator
31+
gem install github_changelog_generator
2732
github_changelog_generator --since-tag ${{ env.SINCE_TAG }} --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md --config-file .github/.github_changelog_generator
2833
2934
- name: βš™ changelog
3035
if: env.SINCE_TAG == ''
3136
run: |
32-
sudo gem install github_changelog_generator
37+
gem install github_changelog_generator
3338
github_changelog_generator --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md --config-file .github/.github_changelog_generator
3439
3540
- name: πŸ–‰ release

0 commit comments

Comments
Β (0)
0