From ca5bb42fd68d0ba38b761f75368af6e3c3364618 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Fri, 9 Apr 2021 03:59:01 +0200 Subject: [PATCH] ci: handle non docs workflow --- .github/workflows/cron.yml | 1 + scripts/sudo-bot/create-pr.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 8a79842a..40ffc7f0 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -47,6 +47,7 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} GH_APP_JWT_PRIV_PEM_CONTENTS: ${{ secrets.GH_APP_JWT_PRIV_PEM_CONTENTS }} TARGET_BRANCH: "main" + SKIP_DOCS_STEPS: "yes" run: ./scripts/sudo-bot/create-pr.sh - name: Run test run: | diff --git a/scripts/sudo-bot/create-pr.sh b/scripts/sudo-bot/create-pr.sh index 83dc50f8..5d637bb6 100755 --- a/scripts/sudo-bot/create-pr.sh +++ b/scripts/sudo-bot/create-pr.sh @@ -52,14 +52,16 @@ flushUsefullFiles() { rm ~/.sudo-bot-ignore } -printf 'Running scipt...\n' +printf 'Running script...\n' # Before they do not exist anymore, changing branch in moveBuildToTempFolder copyUsefullFiles -moveBuildToTempFolder -cleanGhPages -moveBuildFilesToCurrentDir +if [ -z "${SKIP_DOCS_STEPS}" ]; then + moveBuildToTempFolder + cleanGhPages + moveBuildFilesToCurrentDir +fi extractSecrets