fix branch reference #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Merge Main to Nightly | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
merge: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: nightly | |
fetch-depth: 0 # need all history to merge main | |
- name: Merge main to nightly | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "actions@github.com" | |
git merge origin/main -m "merge main to nightly" --no-edit | |
git push origin nightly |