Skip to content

Commit

Permalink
Ana/try fix publish script (#268)
Browse files Browse the repository at this point in the history
* try fix publish script

* changelog

* revert script change

* use same possible fix than in api

Co-authored-by: MergeBack Lunie Bot <[email protected]>
  • Loading branch information
Bitcoinera and MergeBack Lunie Bot authored Jun 2, 2020
1 parent 742e6c7 commit 37709b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions pending/ana_try-fix-publish-script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Fixed] [#268](https://github.com/cosmos/lunie/pull/268) Fixes the publish script (I hope) @Bitcoinera
10 changes: 5 additions & 5 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash
COMMIT_MESSAGE=$(git log --format=%B -n 1)
if [[ $COMMIT_MESSAGE == release* || $COMMIT_MESSAGE == "[Simsala] automatic release"* ]]
if [[ $COMMIT_MESSAGE == "release-"* || $COMMIT_MESSAGE == "[Simsala] automatic release"* ]]
then
echo "Publishing"
git config user.email "[email protected]"
git config user.name "Publish Lunie Bot"
git remote add bot https://${GIT_BOT_TOKEN}@github.com/luniehq/lunie.git
git remote add bot https://${GIT_BOT_TOKEN}@github.com/luniehq/lunie-browser-extension.git
git checkout master
git pull
git merge origin/develop
git merge --no-edit origin/develop
git push
else
echo "No release detected so not publishing"
fi
echo "No release detected, so not publishing"
fi

0 comments on commit 37709b6

Please sign in to comment.