generated from SolderedElectronics/Soldered-Generic-Arduino-Library
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (33 loc) · 998 Bytes
/
push_main.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
name: Push to main
on: [push]
jobs:
push_main:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v2
with:
ref: main
path: .
- run: git rm -rf .
- name: Checkout dev branch
uses: actions/checkout@v2
with:
ref: dev
path: ./dev
- run: sudo apt-get install tree
- run: tree
- run: cp -r ./dev/examples ./examples
- run: cp -r ./dev/src ./src
- run: cp ./dev/LICENSE ./LICENSE
- run: cp ./dev/README.md ./README.md
- run: cp ./dev/keywords.txt ./keywords.txt
- run: cp ./dev/library.properties ./library.properties
- run: tree
- uses: EndBug/add-and-commit@v7
with:
author_name: Main Push Robot
author_email: robot@example.com
message: "Committing dev changes"
branch: main
add: "examples src LICENSE README.md keywords.txt library.properties"