Skip to content

Commit

Permalink
chore: add version_plugin script
Browse files Browse the repository at this point in the history
  • Loading branch information
exactlyaron committed Jan 3, 2020
1 parent 5f9086f commit 4709ac8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions version_plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

. .version
echo $VERSION
version=$VERSION
sudo apt-get install jq
sudo jq --arg version "$version" '.version=$version' plugin.json > plugin_edit.json && mv plugin_edit.json plugin.json
git config --global user.name "$GIT_COMMITTER_NAME"
git config --global user.email "$GIT_COMMITTER_EMAIL"
git remote set-url origin https://${GIT_COMMITTER_NAME}:${GH_TOKEN}@github.com/wmfs/tymly-pg-plugin.git
git checkout master
git add plugin.json
git commit -m "chore(version): plugin $version [skip ci]"
git push

0 comments on commit 4709ac8

Please sign in to comment.