Skip to content

Commit

Permalink
ci: handle non docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Apr 9, 2021
1 parent 3cc68cb commit ca5bb42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
10 changes: 6 additions & 4 deletions scripts/sudo-bot/create-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ca5bb42

Please sign in to comment.