forked from yetibot/yetibot
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.45 KB
/
repository-dispatch.yml
File metadata and controls
45 lines (38 loc) · 1.45 KB
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
41
42
43
44
45
name: Handle repository dispatch events
# this allows other repos to send a release dispatch here which then triggers a
# version bump
on:
repository_dispatch:
types: [bump]
branches: ["*"]
jobs:
bump:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.YETIBOT_GITHUB_TOKEN}}
- uses: DeLaGuardo/setup-clojure@master
with:
lein: 2.9.4
- name: maven cache
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Bump!
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
echo "Upgrading to yetibot/core ${{ github.event.client_payload.message.yb_version }}"
lein update-dependency yetibot/core "${{ github.event.client_payload.message.yb_version }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.YETIBOT_GITHUB_TOKEN}}
commit-message: Bump yetibot/core to "${{ github.event.client_payload.message.yb_version }}"
title: Bump yetibot/core to "${{ github.event.client_payload.message.yb_version }}"
branch: yetibot/core-${{ github.event.client_payload.message.yb_version }}