Skip to content

Commit 65f6f24

Browse files
author
Amin Jamali
committed
Target develop branch
auto-merge to main branch after tests pass
1 parent 513d451 commit 65f6f24

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
target-branch: "develop"
78
labels:
89
- "dependencies"

.github/workflows/go.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ name: Go
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ develop ]
66

77
jobs:
8-
98
test:
109
runs-on: ubuntu-latest
1110
steps:
@@ -26,3 +25,21 @@ jobs:
2625

2726
- name: Test
2827
run: go test -v ./...
28+
29+
promote:
30+
needs: test
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v2
34+
with:
35+
# fetch-depth: Number of commits to fetch. 0 indicates all history for all branches and tags.
36+
fetch-depth: 0
37+
- name: Promote to master
38+
run: |
39+
git fetch --all
40+
41+
git checkout master
42+
git pull --rebase
43+
44+
git rebase develop
45+
git push

0 commit comments

Comments
 (0)