File tree 3 files changed +24
-3
lines changed
3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
- ' testing/**'
8
+ - ' feature/**'
9
+ - ' hotfix/**'
8
10
# Run pipeline for release tags
9
11
tags :
10
12
- ' v*.*.*'
65
67
name : com.seeq.eclipse.importprojects.jar
66
68
path : com.seeq.eclipse.importprojects.jar
67
69
68
-
69
70
# Create splash image
70
71
create-splash-image :
71
72
runs-on : [ubuntu-20.04]
75
76
- name : Start message
76
77
run : echo "Creating splash image for version $VERSION."
77
78
- name : Run splash creator script
78
- run : chmod +x splash.sh && ./splash.sh img $VERSION
79
+ run : chmod +x splash.sh && ./splash.sh img $VERSION null
79
80
- name : Upload artifact
80
81
uses : actions/upload-artifact@v2
81
82
with :
Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ while [[ "$#" -gt 0 ]]; do
16
16
shift
17
17
done
18
18
19
- # TODO: Check if env VERSION is set
19
+ # Check for existing ENVs
20
+ if [[ -z " $VERSION " ]]; then
21
+ echo " => No version ENV found. Exit." ; exit 1 ;
22
+ fi
20
23
21
24
#
22
25
# Config and URLs
Original file line number Diff line number Diff line change @@ -11,10 +11,27 @@ ECLIPSE_BASE_PATH=$3
11
11
REGEX_ECLIPSE_INI=' s/org.eclipse.epp.package.common/org.emoflon.splash/g'
12
12
REGEX_CONFIG_INI=' s/osgi.splashPath=platform\\:\/base\/plugins\/org.eclipse.platform/osgi.splashPath=platform\\:\/base\/plugins\/org.emoflon.splash/g'
13
13
14
+ # Check for existing ENVs
15
+ if [[ -z " $MODE " ]]; then
16
+ echo " => No mode ENV found. Exit." ; exit 1 ;
17
+ fi
18
+ if [[ -z " $VERSION " ]]; then
19
+ echo " => No version ENV found. Exit." ; exit 1 ;
20
+ fi
21
+ if [[ -z " $ECLIPSE_BASE_PATH " ]]; then
22
+ echo " => No Eclipse base path ENV found. Exit." ; exit 1 ;
23
+ fi
24
+
14
25
if [[ " $MODE " = " img" ]]; then
15
26
convert ./resources/emoflon-splash_template.png -font Liberation-Sans -pointsize 24 -draw " gravity south fill white text 0,15 '${VERSION} '" splash.bmp
16
27
elif [[ " $MODE " = " deploy" ]]; then
17
28
mkdir -p $ECLIPSE_BASE_PATH /plugins/org.emoflon.splash
29
+
30
+ # check if splash.bmp exists
31
+ if [[ ! -f splash.bmp ]]; then
32
+ echo " => splash.bmp not found. Exit." ; exit 1 ;
33
+ fi
34
+
18
35
mv splash.bmp $ECLIPSE_BASE_PATH /plugins/org.emoflon.splash
19
36
if [[ " $( uname) " == " Darwin" ]]; then
20
37
# sed on macOS needs a special treatment
You can’t perform that action at this time.
0 commit comments