You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation/docusaurus.mdx
+3-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ To set up the PushPreview workflow in your Docusaurus project:
39
39
runs-on: ubuntu-latest
40
40
if: github.event.label.name == 'preview'
41
41
steps:
42
-
- uses: actions/checkout@v3
42
+
- uses: actions/checkout@v4
43
+
with:
44
+
ref: ${{ github.head_ref }}
43
45
- name: Comment
44
46
run: |
45
47
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
Copy file name to clipboardExpand all lines: docs/installation/gatsby.mdx
+3-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ To set up the PushPreview workflow in your Gatsby project:
39
39
runs-on: ubuntu-latest
40
40
if: github.event.label.name == 'preview'
41
41
steps:
42
-
- uses: actions/checkout@v3
42
+
- uses: actions/checkout@v4
43
+
with:
44
+
ref: ${{ github.head_ref }}
43
45
- name: Comment
44
46
run: |
45
47
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
Copy file name to clipboardExpand all lines: docs/installation/html.mdx
+3-1
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,9 @@ To set up the PushPreview workflow in your project:
40
40
runs-on: ubuntu-latest
41
41
if: github.event.label.name == 'preview'
42
42
steps:
43
-
- uses: actions/checkout@v3
43
+
- uses: actions/checkout@v4
44
+
with:
45
+
ref: ${{ github.head_ref }}
44
46
- name: Comment
45
47
run: |
46
48
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
Copy file name to clipboardExpand all lines: docs/installation/hugo.mdx
+3-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ To set up the PushPreview workflow in your Hugo project:
39
39
runs-on: ubuntu-latest
40
40
if: github.event.label.name == 'preview'
41
41
steps:
42
-
- uses: actions/checkout@v3
42
+
- uses: actions/checkout@v4
43
+
with:
44
+
ref: ${{ github.head_ref }}
43
45
- name: Comment
44
46
run: |
45
47
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
Copy file name to clipboardExpand all lines: docs/installation/jekyll.mdx
+3-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ To set up the PushPreview workflow in your Jekyll project:
39
39
runs-on: ubuntu-latest
40
40
if: github.event.label.name == 'preview'
41
41
steps:
42
-
- uses: actions/checkout@v3
42
+
- uses: actions/checkout@v4
43
+
with:
44
+
ref: ${{ github.head_ref }}
43
45
- name: Comment
44
46
run: |
45
47
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
Copy file name to clipboardExpand all lines: docs/installation/mkdocs.mdx
+3-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ To set up the PushPreview workflow in your MkDocs project:
39
39
runs-on: ubuntu-latest
40
40
if: github.event.label.name == 'preview'
41
41
steps:
42
-
- uses: actions/checkout@v3
42
+
- uses: actions/checkout@v4
43
+
with:
44
+
ref: ${{ github.head_ref }}
43
45
- name: Comment
44
46
run: |
45
47
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
Copy file name to clipboardExpand all lines: docs/installation/pelican.mdx
+3-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ To set up the PushPreview workflow in your Pelican project:
39
39
runs-on: ubuntu-latest
40
40
if: github.event.label.name == 'preview'
41
41
steps:
42
-
- uses: actions/checkout@v3
42
+
- uses: actions/checkout@v4
43
+
with:
44
+
ref: ${{ github.head_ref }}
43
45
- name: Comment
44
46
run: |
45
47
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
Copy file name to clipboardExpand all lines: docs/installation/sphinx.mdx
+3-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@ To set up the PushPreview workflow in your Sphinx project:
39
39
runs-on: ubuntu-latest
40
40
if: github.event.label.name == 'preview'
41
41
steps:
42
-
- uses: actions/checkout@v3
42
+
- uses: actions/checkout@v4
43
+
with:
44
+
ref: ${{ github.head_ref }}
43
45
- name: Comment
44
46
run: |
45
47
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
Copy file name to clipboardExpand all lines: docs/integrations/github.mdx
+34-40
Original file line number
Diff line number
Diff line change
@@ -31,46 +31,40 @@ The [TechDocsStudio/pushpreview-action](https://github.com/TechDocsStudio/pushpr
31
31
Below is an example of how to use the `push-preview-action` in a workflow:
32
32
33
33
```yaml
34
-
name: PushPreview
35
-
36
-
on:
37
-
pull_request_target:
38
-
types:
39
-
- labeled
40
-
41
-
jobs:
42
-
preview:
43
-
runs-on: ubuntu-latest
44
-
if: github.event.label.name == 'preview'
45
-
steps:
46
-
- uses: actions/checkout@v3
47
-
- name: Comment
48
-
run: |
49
-
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "⚙️ Hang tight! PushPreview is currently building your preview. We'll share the URL as soon as it's ready."
For more information on customizing the workflow to your build process, refer to the [Installation](/category/installation) section for CMS-specific guides.
0 commit comments