generated from mlcommons/mlperf_inference_submissions
-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (29 loc) · 939 Bytes
/
auto-update.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
name: Auto-Update Main Branch
on:
push:
branches:
- auto-update # Trigger workflow on commits to 'auto-update' branch
jobs:
update-main:
runs-on: ubuntu-latest
permissions:
contents: write # Required to push to protected branches
steps:
- name: Checkout Main Branch
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Configure Git User
run: |
git config --global user.name mlcommons-bot
git config --global user.email "[email protected]"
- name: Merge auto-update into main
run: |
git fetch
git merge origin/auto-update -m "Auto-merge updates from auto-update branch"
- name: Push Changes to Main and auto-update
run: |
git push origin main
#git push origin main:auto-update