-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (33 loc) · 1.04 KB
/
update-gems.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
39
40
name: Update gems
on:
repository_dispatch:
types:
- gem-released
workflow_dispatch:
jobs:
update-gems:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
- name: Configure git
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
- id: update
run: script/workflows/update.sh
env:
RELEASED_GEM_NAME: ${{ github.event.client_payload.name }}
RELEASED_GEM_VERSION: ${{ github.event.client_payload.version }}
- name: Commit and push gem file changes
run: script/workflows/git-commit-and-push-gemfile.sh
env:
COMMIT_MESSAGE: ${{ steps.update.outputs.commit_message }}
- name: Trigger release
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GHTOKENFORPACTCLIRELEASE }}
event-type: release-triggered