-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (55 loc) · 1.86 KB
/
dependency-release.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI-On-Dispatch
on: repository_dispatch
jobs:
bump_dragonfly_core:
name: "Check Event"
runs-on: ubuntu-latest
if: github.event.action == 'dragonfly_core_release'
steps:
- name: "Checkout Master Branch"
uses: actions/checkout@v2
with:
ref: refs/heads/master
token: ${{ secrets.DEPS_UPDATING }}
- name: "Run Update Script"
env:
VERSION: ${{ github.event.client_payload.version }}
run: |
export CLEAN_VERSION=$(echo $VERSION | sed 's/v//g')
sed -i --regexp-extended 's/(dragonfly-core==).*/dragonfly-core=='"$CLEAN_VERSION"'/' requirements.txt
- name: "Commit and Push Changes"
id: push
env:
VERSION: ${{ github.event.client_payload.version }}
run: |
git config --global user.name 'ladybugbot'
git config --global user.email 'ladybugbot@users.noreply.github.com'
git add .
git commit -m "fix(deps): Bump dragonfly-core to $VERSION"
git push
bump_uwg:
name: "Check Event"
runs-on: ubuntu-latest
if: github.event.action == 'uwg_release'
steps:
- name: "Checkout Master Branch"
uses: actions/checkout@v2
with:
ref: refs/heads/master
token: ${{ secrets.DEPS_UPDATING }}
- name: "Run Update Script"
env:
VERSION: ${{ github.event.client_payload.version }}
run: |
export CLEAN_VERSION=$(echo $VERSION | sed 's/v//g')
sed -i --regexp-extended 's/(uwg==).*/uwg=='"$CLEAN_VERSION"'/' requirements.txt
- name: "Commit and Push Changes"
id: push
env:
VERSION: ${{ github.event.client_payload.version }}
run: |
git config --global user.name 'ladybugbot'
git config --global user.email 'ladybugbot@users.noreply.github.com'
git add .
git commit -m "fix(deps): Bump uwg to $VERSION"
git push