Skip to content

Commit e1e1bb3

Browse files
committed
wip
1 parent 4c56a8c commit e1e1bb3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ jobs:
8383
# Deploy stage.
8484
# Here we build the package JSON (always) and do the deployments
8585
- name: "Package / deploy"
86-
if: env(CI_GITHUB_API_KEY) IS present
86+
# TRAVIS_PULL_REQUEST_BRANCH:
87+
# if the current job is a pull request, the name of the branch from which the PR originated.
88+
# if the current job is a push build, this variable is empty ("").
89+
if: env(TRAVIS_PULL_REQUEST_BRANCH) = ""
8790
stage: deploy
8891
script: $TRAVIS_BUILD_DIR/tests/common.sh
8992
env: BUILD_TYPE=package
90-
# TRAVIS_PULL_REQUEST is set to the pull request number if the current job is a pull request build, or false if it’s not.
9193
deploy:
9294
# Create Github release, upload artifacts
9395
- provider: releases

package/build_boards_manager_package.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ fi
133133
curl_gh_token_arg=(-H "Authorization: token $CI_GITHUB_API_KEY")
134134

135135
# test
136-
echo "key was '$CI_GITHUB_API_KEY'"
137-
CI_GITHUB_API_KEY="vt6StBC+ghqnh8YrreNo3wAzGGddJ2S4YpVZkz4S84xLEGWkIEghQhTrjlhzjBsrnHfLNko4tz9EsNx0yQ8yBlPOdReETGAkqnAU7PSPFss0qGcCRUXYtozNjbFQq6TWIxECK4xq40R9tE6NyeOpm9AYJtwF/v18u2T+T9qSgGQ="
136+
#echo "key was '$CI_GITHUB_API_KEY'"
137+
# this key (below) is working, the overwritten key is not empty
138+
#CI_GITHUB_API_KEY="vt6StBC+ghqnh8YrreNo3wAzGGddJ2S4YpVZkz4S84xLEGWkIEghQhTrjlhzjBsrnHfLNko4tz9EsNx0yQ8yBlPOdReETGAkqnAU7PSPFss0qGcCRUXYtozNjbFQq6TWIxECK4xq40R9tE6NyeOpm9AYJtwF/v18u2T+T9qSgGQ="
138139

139140
# Get previous release name
140141
echo "======== curl dumped header"

0 commit comments

Comments
 (0)