Skip to content

Commit bc40074

Browse files
authored
Merge pull request #561 from cmu-delphi/sgratzl/ci_auto_dev
Auto merge dev upon release
2 parents a8fec3e + 1247386 commit bc40074

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/setup-node@v2
1515
with:
1616
node-version: 16
17-
- uses: actions/cache@v2.1.7
17+
- uses: actions/cache@v2
1818
with:
1919
path: ~/.npm
2020
key: ${{ runner.os }}-node3-${{ hashFiles('**/package-lock.json') }}

.github/workflows/release_main.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
node-version: 16
4949
- name: Cache Node.js modules
50-
uses: actions/cache@v2.1.7
50+
uses: actions/cache@v2
5151
with:
5252
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
5353
key: ${{ runner.OS }}-node2-${{ hashFiles('**/package-lock.json') }}
@@ -75,16 +75,5 @@ jobs:
7575
- name: Reset dev branch
7676
run: |
7777
git fetch origin main:main
78-
git reset --hard main
79-
- name: Create pull request into dev
80-
uses: peter-evans/create-pull-request@v3
81-
with:
82-
branch: bot/sync-main-dev
83-
commit-message: "chore: sync main-dev"
84-
base: dev
85-
title: "chore: sync main->dev"
86-
labels: chore
87-
reviewers: krivard
88-
# assignees:
89-
body: |
90-
Syncing Main->Dev.
78+
git merge main
79+
git push

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ The release consists of multiple steps which can be all done via the GitHub webs
185185
1. Let the code owner review the PR and its changes and let the CI check whether everything builds successfully
186186
1. Once approved and merged, another GitHub action job starts which automatically will
187187
1. create a git tag
188-
1. create another [Pull Request](https://github.com/cmu-delphi/www-main/pulls) to merge the changes back to the `dev` branch
189188
1. create a [GitHub release](https://github.com/cmu-delphi/www-main/releases) with automatically derived release notes
190189
1. create docker image and the production system will be notified to pull this update
191190
1. Once the jobs are completed the new release should be available at https://delphi.cmu.edu within minutes.

0 commit comments

Comments
 (0)