-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): enable autobump PRs for fiat-api consumers (#495)
- Loading branch information
Showing
5 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
# | ||
# wrapper script around running the merge or close auto bump PR | ||
# gradle tasks (ensures publishing is enabled and simplifies the | ||
# CLI for this specific use case). | ||
# | ||
# intended for use by a fiat updater on their local dev environment | ||
# after a fiat release build has completed and the PRs are ready | ||
# for merging (not intended as a CI type of script) | ||
# | ||
# to use, you will need github.token set in your | ||
# ~/.gradle/gradle.properties file or GITHUB_TOKEN present as an | ||
# environment variable | ||
# | ||
|
||
SCRIPT_DIR=`dirname $0` | ||
|
||
GRADLE="$SCRIPT_DIR/gradlew -b $SCRIPT_DIR/build.gradle -PenablePublishing=true" | ||
|
||
if [[ ! -z ${GITHUB_TOKEN} ]]; then | ||
GRADLE="$GRADLE -Pgithub.token=$GITHUB_TOKEN" | ||
fi | ||
|
||
case $1 in | ||
merge) | ||
$GRADLE mergeAllAutoBumpPRs | ||
;; | ||
|
||
close) | ||
$GRADLE closeAllAutoBumpPRs | ||
;; | ||
|
||
*) | ||
echo "usage: $0 <merge|close>" | ||
echo " merge - merge all mergeable fiat autobump PRs" | ||
echo " close - close all open fiat autobump PRs" | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#Mon Oct 28 20:23:46 UTC 2019 | ||
enablePublishing=false | ||
spinnakerGradleVersion=7.0.1 | ||
korkVersion=6.15.1 | ||
spinnakerGradleVersion=7.1.1 | ||
org.gradle.parallel=true | ||
includeProviders=file,github,google-groups,ldap | ||
org.gradle.parallel=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters