Skip to content

Commit

Permalink
fix: script remove useless file from git
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Feb 4, 2023
1 parent b801e20 commit b76f731
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 664 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,19 @@ jobs:
if: github.ref != 'refs/heads/main'
run: pnpm dlx capacitor-plugin-standard-version --prerelease alpha
- name: Update Doc
run: pnpm docgen && pnpm docgen:api
run: pnpm docgen
- name: Add doc to github
run: |
git add README.md api.md
git add README.md
git commit --amend --no-edit
- name: Push to origin
run: |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git pull $remote_repo $CURRENT_BRANCH
git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags
- name: Update Doc
run: pnpm docgen:api
- name: Push generated doc to doc repo
uses: nkoppel/push-files-to-another-repository@v1.1.1
env:
Expand Down

0 comments on commit b76f731

Please sign in to comment.