gem-released #127
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update | |
on: | |
repository_dispatch: | |
types: | |
- gem-released | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: ruby/[email protected] | |
with: | |
ruby-version: 3.3.3 | |
- name: Set up environment | |
run: | | |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git config --global user.name "${GITHUB_ACTOR}" | |
git config --global push.default current | |
bundler -v | |
bundle install | |
- name: Update Gemfile | |
run: script/update-in-github-workflow.sh | |
env: | |
RELEASED_GEM_NAME: ${{ github.event.client_payload.name }} | |
RELEASED_GEM_VERSION: ${{ github.event.client_payload.version }} | |
- name: Trigger release | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.GHTOKENFORRELEASEDISPATCH }} | |
event-type: release-triggered |