.github/workflows/publish.yml in danger-shroud-0.0.5 vs .github/workflows/publish.yml in danger-shroud-0.0.6
- old
+ new
@@ -2,23 +2,26 @@
on:
push:
branches: [ "master" ]
+env:
+ RUBY_VERSION: 2.7.2
+
jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- - name: Set up Ruby 2.6
- uses: actions/setup-ruby@v1
+ - name: Set up Ruby ${{ env.RUBY_VERSION }}
+ uses: ruby/setup-ruby@v1
with:
- ruby-version: 2.6.x
+ ruby-version: ${{ env.RUBY_VERSION }}
- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials