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:
DL6ER
2020-05-24 21:55:29 +02:00
committed by GitHub
+1 -1
View File
@@ -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