Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

go mod tidy

go mod tidy #60

Workflow file for this run

name: API Docs
on:
workflow_dispatch:
branches: [main]
push:
branches: [main]
tags: ['v*']
jobs:
gen-apidocs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
- name: Checkout triggermesh/docs
uses: actions/checkout@v4
with:
path: 'tm-docs'
ref: 'main'
repository: 'triggermesh/docs'
token: ${{ secrets.BOT_TOKEN }}
- name: Run gen-apidocs
run: TRIGGERMESH_COMMIT=${{github.ref_name}} make gen-apidocs
env:
DOCS_OUTPUT_DIR: ${GITHUB_WORKSPACE}/tm-docs/docs/reference/
- name: Commit and push changes
working-directory: tm-docs
run: |
git add -A
git status --porcelain
if [[ $(git status --porcelain | wc -l) -gt 0 ]]; then
git config --global user.name 'TriggerMesh Bot'
git config --global user.email '[email protected]'
git commit -m "Generated from commit ${{github.sha}} on triggermesh/triggermesh-core"
git push
fi