Skip to content

Commit 8679cf1

Browse files
committed
chore: merge main into nightly-testing
2 parents 767672f + 4418457 commit 8679cf1

2 files changed

Lines changed: 34 additions & 8 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Push every commit to `main` into `nightly-testing`
2+
3+
name: Push to Nightly
4+
5+
on:
6+
push:
7+
branches: ["main"]
8+
9+
jobs:
10+
push-to-nightly:
11+
runs-on: ubuntu-latest
12+
steps:
13+
14+
- name: checkout repo
15+
uses: actions/checkout@v6
16+
with:
17+
ref: nightly-testing
18+
fetch-depth: 0
19+
token: ${{ secrets.UNICODE_BASIC_TOKEN }}
20+
21+
- name: set user
22+
run: |
23+
git config user.name "${{ github.actor }}"
24+
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
25+
26+
- name: merge main
27+
run: |
28+
git merge origin/main --no-commit --strategy-option ours --allow-unrelated-histories
29+
git restore --staged lean-toolchain lake-manifest.json
30+
git commit -m "chore: merge main into nightly-testing"
31+
git push origin nightly-testing

.github/workflows/update-nightly.yml renamed to .github/workflows/update-nightly-toolchain.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Update Nightly Testing
1+
name: Update Nightly Toolchain
22

33
on:
4+
workflow_dispatch:
45
schedule:
56
- cron: '0 9 * * *'
6-
workflow_dispatch:
77

88
jobs:
99
update:
@@ -22,12 +22,7 @@ jobs:
2222
- name: set user
2323
run: |
2424
git config user.name "${{ github.actor }}"
25-
git config user.email "${{ github.actor_id}}+${{ github.actor }}@users.noreply.github.com"
26-
27-
- name: merge main
28-
run: |
29-
git fetch origin
30-
git merge origin/main --strategy-option ours --no-commit --allow-unrelated-histories
25+
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
3126
3227
- name: update lean-toolchain
3328
id: toolchain-tag

0 commit comments

Comments
 (0)