File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-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
+ paths :
12
+ - wiki/**
13
+ - .github/workflows/publish-wiki.yml
14
+ # Allow running this workflow manually from the Actions tab.
15
+ workflow_dispatch :
16
+ # Allow this workflow to be triggered from outside.
17
+ repository_dispatch :
18
+ types :
19
+ - ' phpcs-release'
20
+
21
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23
+ concurrency :
24
+ group : " publish-wiki"
25
+ cancel-in-progress : false
26
+
27
+ permissions :
28
+ contents : write
29
+
30
+ jobs :
31
+ publish-wiki :
32
+ name : " Publish Wiki"
33
+ if : github.repository == 'PHPCSStandards/PHP_CodeSniffer-documentation'
34
+
35
+ runs-on : ubuntu-latest
36
+
37
+ steps :
38
+ - name : Checkout code
39
+ uses : actions/checkout@v4
40
+
41
+ - name : Deploy to wiki
42
+ uses :
Andrew-Chen-Wang/[email protected]
43
+ env :
44
+ COMMIT_MSG : ${{ github.event.head_commit.message }}
45
+ with :
46
+ strategy : ' clone'
47
+ path : ' wiki/'
48
+ commit-message : ${{ env.COMMIT_MSG }}
49
+ # repository: PHPCSStandards/PHP_CodeSniffer
50
+ # token: ${{ secrets.PHPCS_GITHUB_TOKEN }}
51
+ dry-run : ${{ github.event_name == 'pull_request' }}
52
+ disable-empty-commits : true
53
+ preprocess : false
You can’t perform that action at this time.
0 commit comments