forked from mirrors/probot
ci: publish docs (#1101)
* fix: use Bash for script Using `/bin/sh` lead to multiple warnings that could result in errors in some POSIX environments. See [SC2039](https://github.com/koalaman/shellcheck/wiki/SC2039). * In POSIX sh, [[ ]] is undefined.shellcheck(SC2039) * In POSIX sh, string replacement is undefined.shellcheck(SC2039) * Using /bin/sh leads to authentication errors for my CI | https://travis-ci.org/MaximDevoir/probot/builds/631990067 * fix: get latest tag for `VERSION` Previous commit would retrieve an older tag
This commit is contained in:
parent
e0d3072751
commit
30b33021d9
|
@ -1,10 +1,10 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Exit if a command returns a non-zero code
|
||||
set -e
|
||||
|
||||
# Store the versions
|
||||
VERSION=$(git describe --tags "$(git rev-list --tags='v[0-9]*' --max-count=1)" | sed 's/^v//')
|
||||
VERSION=$(git describe --tags --match "v[0-9]*" --abbrev=0 | sed 's/^v//')
|
||||
HEAD=$(git rev-parse HEAD)
|
||||
|
||||
# Generate docs
|
||||
|
|
Loading…
Reference in New Issue