55 branches :
66 - main
77 paths :
8- - " docs/**"
8+ - " docs/**"
99 pull_request :
1010 branches :
1111 - main
1212 paths :
13- - " docs/**"
13+ - " docs/**"
1414 workflow_dispatch :
1515
1616jobs :
@@ -21,17 +21,17 @@ jobs:
2121 steps :
2222 - name : Generate a GitHub token
2323 id : ghtoken
24- uses : actions/create-github-app-token@v2
24+ uses : actions/create-github-app-token@v2.0.2
2525 with :
2626 app-id : ${{ secrets.GH_APP_ID }}
2727 owner : slackapi
2828 private-key : ${{ secrets.GH_APP_PRIVATE_KEY }}
2929
3030 - name : Checkout the tool repo (source)
31- uses : actions/checkout@v4
31+ uses : actions/checkout@v4.2.2
3232
3333 - name : Checkout the docs site repo (destination)
34- uses : actions/checkout@v4
34+ uses : actions/checkout@v4.2.2
3535 with :
3636 repository : slackapi/slackapi.github.io
3737 path : " docs_repo"
4040
4141 - name : Update docs in docs site repo
4242 run : |
43- rsync -av --delete ./docs/ ./docs_repo/content/${{ github.event.repository.name }}/
43+ rsync -av --delete ./docs/ ./docs_repo/content/${{ github.event.repository.name }}/
4444
4545 - name : Install dependencies
4646 run : |
5555 - name : Create a pull request
5656 if : ${{ github.event.pull_request.merged || github.event_name == 'workflow_dispatch' }}
5757 id : site-pr
58- uses : peter-evans/create-pull-request@v7
58+ uses : peter-evans/create-pull-request@v7.0.8
5959 with :
6060 token : ${{ steps.ghtoken.outputs.token }}
6161 title : " From ${{ github.event.repository.name }}: ${{ github.event.pull_request.title || 'manual docs sync' }}"
7171 - name : Output the pull request link
7272 if : ${{ steps.site-pr.outputs.pull-request-url }}
7373 run : |
74- echo "Pull request created: ${{ steps.site-pr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY
74+ echo "Pull request created: ${{ steps.site-pr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY
0 commit comments