Skip to content

Commit 165d7cf

Browse files
committed
Fix indenting of workflow
1 parent f81c0ab commit 165d7cf

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

.github/workflows/documentation.yaml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -7,56 +7,56 @@ on: # yamllint disable-line rule:truthy
77
pull_request: null
88

99
jobs:
10-
documentation:
11-
name: "Documentation"
12-
runs-on: "ubuntu-latest"
13-
steps:
14-
- name: "Checkout"
15-
uses: "actions/checkout@v4"
16-
17-
- name: "Build"
18-
uses: "phpDocumentor/phpDocumentor@main"
19-
20-
- name: "Deploy"
21-
if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/1.x' }}"
22-
uses: "upload-artifact@v4"
23-
with:
24-
name: "documentation"
25-
path: "build/docs"
26-
retention-days: 1
27-
28-
deploy:
29-
name: "Deploy"
10+
documentation:
11+
name: "Documentation"
12+
runs-on: "ubuntu-latest"
13+
steps:
14+
- name: "Checkout"
15+
uses: "actions/checkout@v4"
16+
17+
- name: "Build"
18+
uses: "phpDocumentor/phpDocumentor@master"
19+
20+
- name: "Deploy"
3021
if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/1.x' }}"
31-
runs-on: "ubuntu-latest"
32-
needs: "documentation"
33-
steps:
34-
- name: "Checkout"
35-
uses: "actions/checkout@v4"
36-
with:
37-
repository: "phpDocumentor/docs"
38-
token: "${{ secrets.BOT_TOKEN }}"
39-
path: 'docs'
40-
41-
- name: "Download"
42-
uses: "actions/download-artifact@v4"
43-
with:
44-
name: "documentation"
45-
path: "build/docs"
46-
47-
- name: "Copy files"
48-
run: "cp -r build/docs docs/type-resolver"
49-
50-
- name: "Commit"
51-
run: |
52-
cd docs
53-
git config --local user.email "github-actions[bot]@users.noreply.github.com"
54-
git config --local user.name "github-actions[bot]"
55-
git commit -a -m "Update type-resolver documentation"
56-
57-
- name: "Push"
58-
uses: "ad-m/github-push-action@master"
59-
with:
60-
directory: "docs"
61-
token: "${{ secrets.BOT_TOKEN }}"
62-
repository: "phpDocumentor/docs"
22+
uses: "upload-artifact@v4"
23+
with:
24+
name: "documentation"
25+
path: "build/docs"
26+
retention-days: 1
27+
28+
deploy:
29+
name: "Deploy"
30+
if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/1.x' }}"
31+
runs-on: "ubuntu-latest"
32+
needs: "documentation"
33+
steps:
34+
- name: "Checkout"
35+
uses: "actions/checkout@v4"
36+
with:
37+
repository: "phpDocumentor/docs"
38+
token: "${{ secrets.BOT_TOKEN }}"
39+
path: 'docs'
40+
41+
- name: "Download"
42+
uses: "actions/download-artifact@v4"
43+
with:
44+
name: "documentation"
45+
path: "build/docs"
46+
47+
- name: "Copy files"
48+
run: "cp -r build/docs docs/type-resolver"
49+
50+
- name: "Commit"
51+
run: |
52+
cd docs
53+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
54+
git config --local user.name "github-actions[bot]"
55+
git commit -a -m "Update type-resolver documentation"
56+
57+
- name: "Push"
58+
uses: "ad-m/github-push-action@master"
59+
with:
60+
directory: "docs"
61+
token: "${{ secrets.BOT_TOKEN }}"
62+
repository: "phpDocumentor/docs"

0 commit comments

Comments
 (0)