Skip to content

Commit

Permalink
fixup! feat(docs): add workflow to generate documentation on PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jan 29, 2025
1 parent 63a6752 commit 14b9f45
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/check-and-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "docs: update API documentation via docsgen-cli"
if [ "${{ github.repository_owner }}" = "${{ github.actor }}" ]; then
REPO_URL="https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}"
else
REPO_URL="https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.actor }}/${{ github.repository }}"
fi
REPO_URL="https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.event.pull_request.head.repo.full_name }}"
BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
git push $REPO_URL HEAD:$BRANCH_NAME
Expand Down

0 comments on commit 14b9f45

Please sign in to comment.