1
0
Fork 0

travis: check if NUR_REPO was changed from the default.

main
Jörg Thalheim 2020-09-03 06:08:30 +02:00
parent 9e2e9f3076
commit 7f823a0302
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ env:
# #
# The repo name as used in # The repo name as used in
# https://github.com/nix-community/NUR/blob/master/repos.json # https://github.com/nix-community/NUR/blob/master/repos.json
- NUR_REPO=<YOUR_NUR_REPO_NAME_HERE> - NUR_REPO="<YOUR_NUR_REPO_NAME_HERE>"
matrix: matrix:
include: include:
@ -35,6 +35,6 @@ script:
after_success: after_success:
- if [ -n "${CACHIX_CACHE}" ]; then nix-build ci.nix -A cacheOutputs | cachix push "${CACHIX_CACHE}"; fi - if [ -n "${CACHIX_CACHE}" ]; then nix-build ci.nix -A cacheOutputs | cachix push "${CACHIX_CACHE}"; fi
- if [ "cron" != "${TRAVIS_EVENT_TYPE}" -a "false" = "${TRAVIS_PULL_REQUEST}" -a "master" = "${TRAVIS_BRANCH}" ]; then - if [[ NUR_REPO != "<YOUR_NUR_REPO_NAME_HERE>" && "cron" != "${TRAVIS_EVENT_TYPE}" && "false" = "${TRAVIS_PULL_REQUEST}" && "master" = "${TRAVIS_BRANCH}" ]]; then
curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi