Skip to content

Update merger.yml

Update merger.yml #11

Workflow file for this run

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: Archive src directory
run: tar -czf src.tar.gz src
- name: Upload src artifact
uses: actions/upload-artifact@v2
with:
name: src-artifact
path: src.tar.gz
- name: Show last commit after merging tf/s35770
run: git log -1 --oneline
- name: Push tf/build/main branch to origin
run: git push origin tf/build/main --force
- name: Show last commit after push
run: git log -1 --oneline