Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/invoke-all.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Invoke All Functions

on:
on:
pull_request:
types:
- opened
- synchronize
- reopened
paths-ignore:
- '.github/**'
push:
Expand All @@ -24,7 +28,7 @@ jobs:
run: |
## NOTE: ls -d returns absolute path
## GITHUB_WORKSPACE is the root directory
language_paths="$(ls -d ${GITHUB_WORKSPACE}/*/ | jq -R -s 'split("\n")[:-1]')"
language_paths="$(ls -d ${GITHUB_WORKSPACE}/*/ | jq -R -s 'split("\n")[:-1]')"
languages="$(ls -d ${GITHUB_WORKSPACE}/*/ | xargs -n 1 basename | jq -R -s 'split("\n")[:-1]')"

# set output
Expand Down Expand Up @@ -56,7 +60,7 @@ jobs:
name: f
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
with:
hugo-version: '0.142.0'
extended: true
- name: Build & Invoke Function
Expand Down Expand Up @@ -90,7 +94,7 @@ jobs:
echo "ls -la ${GITHUB_WORKSPACE}"
ls -la ${GITHUB_WORKSPACE}
template=$(basename "$template_dir_abs")

############################# FUNC CREATE #############################
echo "> FUNC CREATE"

Expand All @@ -116,11 +120,11 @@ jobs:
echo "build with host"
FUNC_ENABLE_HOST_BUILDER=1 FUNC_BUILDER=host FUNC_CONTAINER=false FUNC_REGISTRY=docker.io/4141gauron3268 f build
else
echo "build with pack"
echo "build with pack"

FUNC_REGISTRY=quay.io/dfridric f build
fi

############################## FUNC RUN ##############################
echo "> FUNC RUN"
if [ "$HOST_ENABLED" == "true" ]; then
Expand Down