Skip to content

Force release

Force release #119

name: Force release
on:
workflow_dispatch:
inputs:
gem:
description: Gem to release
required: true
version:
description: Version to release
required: true
flags:
description: Extra flags to pass to the release script
required: false
default: ""
jobs:
release-perform:
if: ${{ github.repository == 'open-telemetry/opentelemetry-ruby' }}
env:
ruby_version: "3.0"
runs-on: ubuntu-latest
steps:
- name: Install Ruby ${{ env.ruby_version }}
uses: ruby/setup-ruby@v1.190.0
with:
ruby-version: ${{ env.ruby_version }}
- name: Checkout repo
uses: actions/checkout@v2
- name: Install Toys
run: "gem install --no-document toys -v 0.15.5"
- name: Perform release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
toys release perform --yes --verbose \
"--enable-releases=${{ secrets.ENABLE_RELEASES }}" \
"--release-sha=${{ github.sha }}" \
"--rubygems-api-key=${{ secrets.RUBYGEMS_API_KEY }}" \
${{ github.event.inputs.flags }} \
"${{ github.event.inputs.gem }}" "${{ github.event.inputs.version }}" \
< /dev/null