File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ if [ -z " $GITHUB_WORKSPACE " ]; then
3
+ export GITHUB_WORKSPACE=" $PWD "
4
+ export GITHUB_REPOSITORY=" francisduvivier/arduino-esp32-fri3d"
5
+ export GITHUB_EVENT_NAME=" release"
6
+ export GITHUB_EVENT_PATH=" $GITHUB_WORKSPACE /.github/test-release-published-event.json"
7
+ fi
2
8
3
- export BASE_DIR=" $GITHUB_WORKSPACE /arduino-esp32-fork"
9
+ export BASE_DIR=" $GITHUB_WORKSPACE /arduino-esp32"
10
+ export UPSTREAM_DIR=" $GITHUB_WORKSPACE /arduino-esp32-fork"
4
11
export MODS_DIR=" $GITHUB_WORKSPACE /arduino-esp32-fork-mods"
5
12
13
+ # Clone updstream code
14
+ echo " Start Cloning espressif/arduino-esp32"
15
+ rsync -av " $UPSTREAM_DIR /" " $BASE_DIR /"
16
+ echo " Done Cloning espressif/arduino-esp32"
17
+
18
+ # Overwrite the files in BASE_DIR with files MODS_DIR
19
+ echo " Start Copying Fri3d arduino-esp32 mods"
20
+ rsync -av " $MODS_DIR /" " $BASE_DIR /"
21
+ echo " Done Copying Fri3d arduino-esp32 mods"
22
+
23
+
6
24
if [[ ! $GITHUB_EVENT_NAME == " release" ]]; then
7
25
echo " Wrong event '$GITHUB_EVENT_NAME '!"
8
26
exit 1
Original file line number Diff line number Diff line change
1
+ {
2
+ "action" : " published"
3
+ }
Original file line number Diff line number Diff line change
1
+ /arduino-esp32 /
You can’t perform that action at this time.
0 commit comments