Skip to content

Commit

Permalink
ci: updates docs push action by fetching tags & setting the correct t…
Browse files Browse the repository at this point in the history
…ag (probot#1236)
  • Loading branch information
timbru31 authored May 26, 2020
1 parent 8a057d2 commit a95f0ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=20 origin +refs/tags/*:refs/tags/*
- uses: actions/setup-node@v1
with:
node-version: "12.x"
Expand Down
5 changes: 4 additions & 1 deletion script/publish-docs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
set -e

# Store the versions
VERSION=$(git describe --tags --match "v[0-9]*" --abbrev=0 | sed 's/^v//')
VERSION=$(git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')
HEAD=$(git rev-parse HEAD)
REPO=https://${OCTOKITBOT_PAT}@github.com/probot/probot.github.io.git

echo "Version is $VERSION"
echo "Head is $HEAD"

# Generate docs
npm run doc

Expand Down

0 comments on commit a95f0ef

Please sign in to comment.