Skip to content

Commit

Permalink
ci: fix build process missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Apr 8, 2021
1 parent 80eb36d commit 852e2c3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions scripts/sudo-bot/create-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,25 @@ extractSecrets() {
printf '%s' "${GPG_PRIVATE_KEY}" > ~/.private-key.asc
}

copyUsefullFiles() {
cp ./scripts/sudo-bot/template-docs.js ~/template-docs.js
cp ./scripts/sudo-bot/.sudo-bot-ignore ~/.sudo-bot-ignore
}

flushSecrets() {
rm ~/.secret_jwt.pem
}

flushUsefullFiles() {
rm ~/template-docs.js
rm ~/.sudo-bot-ignore
}

printf 'Running scipt...\n'

# Before they do not exist anymore, changing branch in moveBuildToTempFolder
copyUsefullFiles

moveBuildToTempFolder
cleanGhPages
moveBuildFilesToCurrentDir
Expand All @@ -62,8 +75,8 @@ printf 'Running...\n'
--repository-slug='williamdes/mariadb-mysql-kbs' \
--target-branch="${TARGET_BRANCH}" \
--assign='williamdes' \
--template="${ROOT}/scripts/sudo-bot/template-docs.js" \
--ignore-file="${ROOT}/scripts/sudo-bot/.sudo-bot-ignore" \
--template='~/template-docs.js' \
--ignore-file='~/.sudo-bot-ignore' \
--commit-author-email='sudo-bot@wdes.fr' \
--commit-author-name='Sudo Bot' \
--gpg-private-key-file='~/.private-key.asc' \
Expand All @@ -72,3 +85,4 @@ printf 'Running...\n'
printf 'End.\n'

flushSecrets
flushUsefullFiles

0 comments on commit 852e2c3

Please sign in to comment.