File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish wiki
2
+ on :
3
+ push :
4
+ branches :
5
+ - ' main'
6
+ paths :
7
+ - wiki/**
8
+ - .github/workflows/publish-wiki.yml
9
+ # Do a dry-run (check, no deploy) for PRs.
10
+ pull_request :
11
+ # Allow running this workflow manually from the Actions tab.
12
+ workflow_dispatch :
13
+ # Allow this workflow to be triggered from outside.
14
+ repository_dispatch :
15
+ types :
16
+ - ' phpcs-release'
17
+
18
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20
+ concurrency :
21
+ group : " publish-wiki"
22
+ cancel-in-progress : false
23
+
24
+ permissions :
25
+ contents : write
26
+
27
+ jobs :
28
+ publish-wiki :
29
+ name : " Publish Wiki"
30
+ if : github.repository == 'PHPCSStandards/PHP_CodeSniffer-documentation'
31
+
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - name : Checkout code
35
+ uses : actions/checkout@v4
36
+
37
+ - name : Deploy to wiki
38
+ uses : Andrew-Chen-Wang/github-wiki-action@v4
39
+ with :
40
+ strategy : ' clone'
41
+ path : ' wiki/'
42
+ # commit-message: ...
43
+ # repository: PHPCSStandards/PHP_CodeSniffer
44
+ # token: ${{ secrets.PHPCS_GITHUB_TOKEN }}
45
+ # dry-run: ${{ github.event_name == 'pull_request' }}
You can’t perform that action at this time.
0 commit comments