Skip to content

Commit

Permalink
ci: resolve buf docs sync
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Feb 9, 2022
1 parent c55d8cc commit 6c1bbf8
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,6 @@ jobs:
token: ${{ secrets.ORY_BOT_PAT }}
api-spec-location: spec/api.json
config-spec-location: .schema/config.schema.json
- env:
GITHUB_TOKEN: ${{ inputs.token }}
run: |
cp "current-repo/docs/.generated/proto-api.mdx" "docs/docs/keto/reference/proto-api.mdx"
cd docs
git add -A
git commit -a -m "autogen(docs): generate and bump docs for $repo" || true
git pull origin master --rebase || true
git push origin HEAD:master || true
shell: bash

docs-cli:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -285,13 +275,6 @@ jobs:
git add proto
git commit -a -m "autogen: build buf" && git push "https://${GITHUB_ACTOR}:${{ secrets.ORY_BOT_PAT }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:${GITHUB_REF#"refs/heads/"} || true
working-directory: current-repo
- name: Push docs to master
run: |
git config --local user.email "60093411+ory-bot@users.noreply.github.com"
git config --local user.name "ory-bot"
git add proto
git commit -a -m "autogen: build buf" && git push "https://${GITHUB_ACTOR}:${{ secrets.ORY_BOT_PAT }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:${GITHUB_REF#"refs/heads/"} || true
working-directory: current-repo
- if: ${{ github.ref_name == 'master' || github.ref_type == 'tag' }}
uses: actions/checkout@v2
with:
Expand All @@ -304,6 +287,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.ORY_BOT_PAT }}
run: |
cp "current-repo/docs/.generated/proto-api.mdx" "docs/docs/keto/reference/proto-api.mdx"
cd docs
git stash || true
git pull --rebase origin master || true
Expand Down

0 comments on commit 6c1bbf8

Please sign in to comment.