forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (42 loc) · 1.39 KB
/
merger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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: dfm/force-push-branch-action@v1
with:
commit-message: "Committing automatically from GitHub Actions"
path: .
target-branch: "tf/build/main"