Skip to content

Commit

Permalink
merge workflows to avoid creating PATs (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitra-mylarappachar authored Jan 26, 2023
1 parent baf43f8 commit e3f90c6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 49 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name: ci

on: [push, pull_request_target]
on: [push]
jobs:
ci:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -36,3 +36,29 @@ jobs:
run: |
git diff --exit-code go.mod
git diff --exit-code go.sum
- name: Install dependencies
run: |
# redocly CLI
npm i -g redoc-cli
# yq
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O yq
chmod +x yq
export PATH=${PATH}:`pwd`
- name: Generate HTML doc
run: (cd v1 && make gen-html)

- name: Commit changes
run: .github/workflows/commit-changes.sh
env:
WATCH_DIR: "v1/html"
GIT_AUTHOR_NAME: ${{ github.actor }}
GIT_AUTHOR_EMAIL: ${{ github.actor }}@users.noreply.github.com
GIT_COMMITTER_NAME: GitHub Actions
GIT_COMMITTER_EMAIL: actions@github.com
GIT_COMMIT_MESSAGE: |
[auto generated] Checking in generated offline HTML doc
BRANCH_REF: ${{ github.event.pull_request.head.ref }}
REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48 changes: 0 additions & 48 deletions .github/workflows/html.yml

This file was deleted.

0 comments on commit e3f90c6

Please sign in to comment.