File tree Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -e
4
+
5
+ # Source colors script
6
+ . zz_colors
7
+
8
+ # Function to print help and manage arguments
9
+ eval $(
10
+ zz_args " Run act with predefined arguments" $0 " $@ " << -help
11
+ help
12
+ )
13
+
14
+ # ### Goto repository root
15
+ cd " $( git rev-parse --show-toplevel) " > /dev/null
16
+
17
+ for e in " SSH_KNOWN_HOSTS<ssh-keyscan -H ${KNOWN_HOST} " " SSH_PRIVATE_KEY" " SSH_CONFIG" ; do
18
+
19
+ # extract the alias name from the first part of the string
20
+ # and the underlying value from the second part
21
+ a=$( echo " $e " | cut -d' <' -f1)
22
+ v=$( echo " $e " | cut -d' <' -f2 -s)
23
+
24
+ # Set alias name to the value of the underlying variable
25
+ if [ -n " $v " ]; then
26
+ zz_log i " Setting <{B $a }>..."
27
+ eval export $a =" \$ ($v )"
28
+ fi
29
+
30
+ # Build the argument to pass to act
31
+ if [ -n " $( eval echo " \$ $a " ) " ]; then
32
+ zz_log i " Passing <{B $a }>..."
33
+ ARGS=" $ARGS --secret $a "
34
+ fi
35
+
36
+ done
37
+
38
+ echo act --artifact-server-path ./.artifacts $ARGS " $@ "
39
+
40
+ # ### Back to previous directory
41
+ cd - > /dev/null
Original file line number Diff line number Diff line change 2
2
"id" : " act" ,
3
3
"name" : " Nektos Act" ,
4
4
"description" : " A tool for running GitHub Actions locally" ,
5
- "version" : " 1.4.2 " ,
5
+ "version" : " 1.5.0 " ,
6
6
"dependsOn" : {
7
7
"ghcr.io/devcontainers/features/docker-in-docker" : {}
8
8
},
Original file line number Diff line number Diff line change
1
+ *
2
+ ! .gitignore
You can’t perform that action at this time.
0 commit comments