Skip to content

Commit fb42aae

Browse files
calls workflow
1 parent 81e019a commit fb42aae

1 file changed

Lines changed: 12 additions & 17 deletions

File tree

.github/workflows/sync-docs.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: Sync docs to docs site repo
1+
name: Sync tools docs to site repo
22

33
on:
4-
pull_request:
4+
push:
55
branches:
66
- main
77
paths:
8-
- "docs/**"
9-
push:
8+
- "docs/**"
9+
pull_request:
1010
branches:
1111
- main
1212
paths:
13-
- "docs/**"
13+
- "docs/**"
1414
workflow_dispatch:
1515

1616
jobs:
17-
sync-docs:
17+
18+
get-token:
1819
runs-on: ubuntu-latest
1920
steps:
20-
2121
- name: Generate a GitHub token
2222
id: ghtoken
2323
uses: actions/create-github-app-token@v1
@@ -26,13 +26,8 @@ jobs:
2626
owner: slackapi
2727
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
2828

29-
- name: Checkout private actions repo
30-
uses: actions/checkout@v4
31-
with:
32-
repository: slackapi/slackapi.github.io
33-
token: ${{ steps.ghtoken.outputs.token }}
34-
persist-credentials: false
35-
path: docs_repo
36-
37-
- name: Run sync-docs action
38-
uses: ./docs_repo/.github/actions/sync-from-tools-docs
29+
call-sync-from-tools-docs-workflow:
30+
needs: get-token
31+
uses: slackapi/another-repo/.github/workflows/sync-from-tools-docs.yml@main
32+
secrets:
33+
token: ${{ needs.get-token.outputs.token }}

0 commit comments

Comments
 (0)