Skip to content

Commit 31b8425

Browse files
authored
add triggers to wf (#51)
1 parent 1031248 commit 31b8425

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/invoke-all.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: Invoke All Functions
22

3-
on:
3+
on:
44
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
59
paths-ignore:
610
- '.github/**'
711
push:
@@ -24,7 +28,7 @@ jobs:
2428
run: |
2529
## NOTE: ls -d returns absolute path
2630
## GITHUB_WORKSPACE is the root directory
27-
language_paths="$(ls -d ${GITHUB_WORKSPACE}/*/ | jq -R -s 'split("\n")[:-1]')"
31+
language_paths="$(ls -d ${GITHUB_WORKSPACE}/*/ | jq -R -s 'split("\n")[:-1]')"
2832
languages="$(ls -d ${GITHUB_WORKSPACE}/*/ | xargs -n 1 basename | jq -R -s 'split("\n")[:-1]')"
2933
3034
# set output
@@ -56,7 +60,7 @@ jobs:
5660
name: f
5761
- name: Setup Hugo
5862
uses: peaceiris/actions-hugo@v3
59-
with:
63+
with:
6064
hugo-version: '0.142.0'
6165
extended: true
6266
- name: Build & Invoke Function
@@ -90,7 +94,7 @@ jobs:
9094
echo "ls -la ${GITHUB_WORKSPACE}"
9195
ls -la ${GITHUB_WORKSPACE}
9296
template=$(basename "$template_dir_abs")
93-
97+
9498
############################# FUNC CREATE #############################
9599
echo "> FUNC CREATE"
96100
@@ -116,11 +120,11 @@ jobs:
116120
echo "build with host"
117121
FUNC_ENABLE_HOST_BUILDER=1 FUNC_BUILDER=host FUNC_CONTAINER=false FUNC_REGISTRY=docker.io/4141gauron3268 f build
118122
else
119-
echo "build with pack"
123+
echo "build with pack"
120124
121125
FUNC_REGISTRY=quay.io/dfridric f build
122126
fi
123-
127+
124128
############################## FUNC RUN ##############################
125129
echo "> FUNC RUN"
126130
if [ "$HOST_ENABLED" == "true" ]; then

0 commit comments

Comments
 (0)