add doc reference to GHA #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Files to Mainbot | |
on: | |
workflow_dispatch: {} # Manually trigger the workflow | |
push: | |
branches: | |
- main | |
paths: | |
- 'docs/**' | |
- 'README.md' | |
jobs: | |
upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Upload Files | |
uses: savantly-net/mainbot-github-action@main | |
with: | |
glob-patterns: '*.md' # Set your file pattern here | |
namespace: '/mainbot-documents' | |
api-url: 'https://backstage-mainbot.savantly.apps.savantly.cloud' | |
client-id: ${{ secrets.MAINBOT_CLIENT_ID }} | |
client-secret: ${{ secrets.MAINBOT_CLIENT_SECRET }} | |
token-endpoint: https://oidc.apps.savantly.cloud/realms/savantly/protocol/openid-connect/token |