mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Merge pull request #773 from pi-hole/fix/circleci_prevent_foreign_uploads
Skip CircleCI Upload step on PRs coming from forks
This commit is contained in:
@@ -19,7 +19,7 @@ version: 2
|
||||
- run:
|
||||
name: "Upload"
|
||||
command: |
|
||||
[[ "$CIRCLE_PROJECT_REPONAME" == "FTL" && "$CIRCLE_PROJECT_USERNAME" == "pi-hole" ]] || exit 0
|
||||
[ -z "${CIRCLE_PR_USERNAME}" ] || exit 0
|
||||
DIR="${CIRCLE_TAG:-${CIRCLE_BRANCH}}"
|
||||
mv pihole-FTL "${BIN_NAME}"
|
||||
sha1sum pihole-FTL-* > ${BIN_NAME}.sha1
|
||||
|
||||
Reference in New Issue
Block a user