-
Notifications
You must be signed in to change notification settings - Fork 273
89 lines (86 loc) · 2.63 KB
/
test.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Jc Test
on:
push:
branches:
- jcrelease
jobs:
publish:
name: Release build and publish
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
with:
ref: jcrelease
persist-credentials: false
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- name: Commit changes
run: |
echo "Something" > something.txt
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add something.txt
git commit -m "AUTOMATION: Something"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
branch: jcrelease
release_to_main:
needs: publish
name: Sync main with release
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
with:
ref: jcmain
persist-credentials: false
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- name: Sync main
run: |
git fetch origin jcrelease
git merge --ff-only origin/jcrelease
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
branch: jcmain
update_changelog:
needs: release_to_main
name: Update Changelog - Model
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
with:
ref: jcmain
persist-credentials: false
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- name: Commit CHANGELOG.md and merge to develop
run: |
echo "else" >> something.txt
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add something.txt
git commit -m "AUTOMATION: Something else"
git fetch origin jcdevelop
git checkout -t origin/jcdevelop
git merge --ff jcmain -m "AUTOMATION: Merge main into develop"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
branch: jcdevelop