-
Notifications
You must be signed in to change notification settings - Fork 34
38 lines (32 loc) · 954 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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.5
- 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