-
Notifications
You must be signed in to change notification settings - Fork 27
44 lines (35 loc) · 1.07 KB
/
installer.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
41
42
43
44
name: Updates ZenMaxBuilder Installer
on:
push:
branches: [ "zmb" ]
paths:
- src/install.sh
workflow_dispatch:
jobs:
update-installer:
if: github.repository == 'grm34/ZenMaxBuilder'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: zmb
fetch-depth: 0
- name: Creates new branch
run: |
git checkout -b "up2date" "zmb"
- name: Copy ZMB installer
run: |
cp -f "./src/install.sh" "./docs/zmb"
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "BOT: updates zmb installer (docs/zmb)" -a
- name: Push changes
run: |
git push origin "up2date"
- name: Create and Merge Pull Request
run: |
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
gh pr create -B "zmb" -H "up2date" -f -l "automerge"
gh pr merge -s --auto