forked from shotgunsoftware/tk-config-default2
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 1023 Bytes
/
automatic_release.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
name: Automatic release main to release branches
on:
push:
branches:
- main
jobs:
nfa-release-shotgrid-config:
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Git config
run: |
git config --local user.email "actions@github.com"
git config --local user.name "Github Actions"
- name: Fetch repository
run: |
git fetch --unshallow
- name: Release main to s4
run: |
git checkout release/s4
git pull
git merge --no-ff main -m "Automatic merge main for release s4"
git push
- name: Release main to s3
run: |
git checkout release/s3
git pull
git merge --no-ff main -m "Automatic merge main for release s3"
git push
- name: Release main to s2
run: |
git checkout release/s2
git pull
git merge --no-ff main -m "Automatic merge main for release s2"
git push