Skip to content

Commit

Permalink
Merge pull request anothrNick#5 from anothrNick/more-fixes
Browse files Browse the repository at this point in the history
use correct secret
  • Loading branch information
anothrNick authored Aug 29, 2019
2 parents 068b188 + fb44b5a commit ab8cae0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# github-tag-action

A Github Action to automatically bump and tag a github repository, on merge, with the latest semver formatted version.
A Github Action to automatically bump and tag master, on merge, with the latest semver formatted version.

### Usage

Expand All @@ -22,6 +22,8 @@ jobs:
REPO_OWNER: anothrNick
```

Be sure to set the *REPO_OWNER* environment variable so that your tag your repo.

### Credits

[fsaintjacques/semver-tool](https://github.com/fsaintjacques/semver-tool)
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ case "$log" in
esac

echo $new
echo $GITHUB_TOKEN

dt=$(date '+%Y-%m-%dT%H:%M:%SZ')
repo=$(basename -s .git `git config --get remote.origin.url`)

echo "pushing tag $new to repo $REPO_OWNER/$repo"

curl -0 -v -X POST https://api.github.com/repos/$REPO_OWNER/$repo/git/tags \
-H "Authorization: token $ACCESS_TOKEN" \
-H "Authorization: token $GITHUB_TOKEN" \
-d @- << EOF
{
Expand Down

0 comments on commit ab8cae0

Please sign in to comment.