File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 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
Original file line number Diff line number Diff line change 1- name : Update Nightly Testing
1+ name : Update Nightly Toolchain
22
33on :
4+ workflow_dispatch :
45 schedule :
56 - cron : ' 0 9 * * *'
6- workflow_dispatch :
77
88jobs :
99 update :
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
You can’t perform that action at this time.
0 commit comments