-
Notifications
You must be signed in to change notification settings - Fork 32
50 lines (43 loc) · 1.4 KB
/
update-connector-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Connector docs PR
concurrency:
group: connector-docs-${{ github.ref }}
cancel-in-progress: true
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
update-connector-docs:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Fluvio
run: |
curl -fsS https://hub.infinyon.cloud/install/install.sh | bash
echo "$HOME/.fluvio/bin" >> $GITHUB_PATH
- name: Fluvio Login
run: fluvio cloud login --email ${{ secrets.CLOUD_USER_EMAIL }} --password ${{ secrets.CLOUD_USER_PASSWORD }}
- uses: Swatinem/rust-cache@v2
# Run fluvio cms
- name: Run connector docs update
run: cargo run -- connector --prod
# Create/Update PR
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
add-paths: |
embeds/connectors/inbound
embeds/connectors/outbound
content/connectors/inbound
content/connectors/outbound
labels: |
bot
title: 'docs: Update connector reference docs [bot]'
body: |
Updating connector docs
Auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
delete-branch: true