Update merger.yml #14
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/build/main Branch | |
permissions: write-all | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' # Spouští workflow při push událostech do všech větví | |
jobs: | |
create-tf-build-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: Checkout and create tf/build/main branch from upstream/main | |
run: | | |
git checkout -b tf/build/main upstream/main | |
- name: Fetch and merge tf/SHT4x | |
run: | | |
git fetch origin tf/SHT4x:tf/SHT4x | |
git merge tf/SHT4x | |
- name: Show last commit after merging tf/SHT4x | |
run: git log -1 --oneline | |
- name: Fetch and merge tf/s35770 | |
run: | | |
git fetch origin tf/s35770:tf/s35770 | |
git merge tf/s35770 | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: tf/build/main | |
force_with_lease: true |