File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Sync docs to docs site repo
1+ name : Sync tools docs to site repo
22
33on :
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
1616jobs :
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
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 }}
You can’t perform that action at this time.
0 commit comments