-
Notifications
You must be signed in to change notification settings - Fork 31
43 lines (35 loc) · 1.2 KB
/
slack-cli-generate-docs.yaml
File metadata and controls
43 lines (35 loc) · 1.2 KB
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
name: Generate Slack CLI Docs
on:
workflow_dispatch:
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- name: Install Slack CLI
run: |
curl -fsSL https://downloads.slack-edge.com/slack-cli/install.sh | bash
- name: Generate a GitHub token
id: ghtoken
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.GH_APP_ID }}
owner: slackapi
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v4
- name: Generate docs
run: |
slack docgen docs/reference
- name: Create a pull request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.ghtoken.outputs.token }}
title: "Automated Slack CLI reference docs for release"
body: "Automatically updating Slack CLI docs following release"
author: "slackapi[bot] <186980925+slackapi[bot]@users.noreply.github.com>"
committer: "slackapi[bot] <186980925+slackapi[bot]@users.noreply.github.com>"
commit-message: "Update slack cli reference docs"
base: "main"
branch: "update-slack-cli-reference"
delete-branch: true
labels: docs