From af8173ccd9fa81023fa1dac8ba3240327a0197a3 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 16 Apr 2022 08:31:34 +0530 Subject: [PATCH] fix: pass author details to deploy fn --- .woodpecker.yml | 2 +- scripts/zola.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index c1a1e57..d39b027 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,7 +6,7 @@ pipeline: commands: - make env - make - - ./scripts/zola.sh deploy pages public "CI_COMMIT_AUTHOR " + - ./scripts/zola.sh deploy pages public "$CI_COMMIT_AUTHOR <$CI_COMMIT_AUTHOR_EMAIL>" - ./scripts/ci.sh --init $HOSTEA_WRITE_DEPLOY_KEY - ./scripts/ci.sh --deploy $PAGES_DEPLOY_SECRET pages - ./scripts/ci.sh --clean diff --git a/scripts/zola.sh b/scripts/zola.sh index 1e3df6f..5dcbea3 100755 --- a/scripts/zola.sh +++ b/scripts/zola.sh @@ -92,7 +92,6 @@ clean() { # $1: branch name # $2: directory containing build assets # $3: Author in format -# $3: Author in format deploy() { cd $PROJECT_ROOT tmp_dir=$(mktemp -d) @@ -120,7 +119,8 @@ elif match_arg $1 'd' 'deploy' then check_arg $2 check_arg $3 - deploy $2 $3 + check_arg $4 + deploy $2 $3 $4 elif match_arg $1 'b' 'build' then build