Update merger.yml #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: Create tf/main_auto Branch | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
jobs: | |
create-tf-main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Git | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email 'github-actions@github.com' | |
- name: Add upstream remote | |
run: git remote add upstream https://github.com/PX4/PX4-Autopilot.git | |
- name: Fetch all branches | |
run: git fetch --all | |
- name: Create tf/main branch from upstream/main | |
run: | | |
git checkout upstream/main | |
git checkout -b tf/main | |
- name: Merge tf/sht4x into tf/main | |
run: | | |
git merge tf/sht4x | |
- name: Merge tf/s35770 into tf/main | |
run: | | |
git merge tf/s35770 | |
- name: Push tf/main branch to origin | |
run: | | |
git push origin tf/build/main --force |