Deploy preview site to review pull requests #5
|
@ -0,0 +1,35 @@
|
|||
comment:
|
||||
glob-options:
|
||||
dot: true
|
||||
snippets:
|
||||
- id: image-{{ imageOutcome }}
|
||||
files:
|
||||
- '**'
|
||||
body: |
|
||||
#### :hammer: Docker image `{{ imageOutcome }}`
|
||||
|
||||
- id: build-{{ buildOutcome }}
|
||||
files:
|
||||
- '**'
|
||||
body: |
|
||||
#### :mag: Jekyll build `{{ buildOutcome }}`
|
||||
<details><summary>Build Output</summary>
|
||||
|
||||
```
|
||||
{{ buildOutputsResult }}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
- id: deploy-{{ deployOutcome }}
|
||||
files:
|
||||
- '**'
|
||||
body: |
|
||||
#### :rocket: Jekyll deploy `{{ deployOutcome }}`
|
||||
#### :link: Preview documentation [here]({{ deployUrl }})
|
||||
|
||||
- id: pusher-{{ gitActor }}-{{ gitEventName }}-{{ gitRunNumber }}-{{ gitRunAttempt }}
|
||||
files:
|
||||
- '**'
|
||||
body: |
|
||||
*Pusher: @{{ gitActor }}, Action: `{{ gitEventName }}`, Workflow: `{{ gitWorkflow }}`, Run: {{ gitRunNumber }}/{{ gitRunAttempt }}*
|
|
@ -63,21 +63,22 @@ jobs:
|
|||
- name: Comment pull request
|
||||
id: comment_pull_request
|
||||
if: gitea.event_name == 'pull_request'
|
||||
uses: exercism/pr-commenter-action@v1.4.0
|
||||
uses: exercism/pr-commenter-action@v1.5.1
|
||||
with:
|
||||
template-variables: |
|
||||
{
|
||||
"asciidocOutcome": "${{ steps.asciidoc.outcome }}",
|
||||
"verifyOutcome": "${{ steps.verify.outcome }}",
|
||||
"verifyOutputsResult": ${{ toJSON(steps.verify.outputs.result) }},
|
||||
"deployOutcome": "${{ steps.deploy.outcome }}",
|
||||
"imageOutcome": "${{ steps.build_image.outcome }}",
|
||||
"buildOutcome": "${{ steps.build_site.outcome }}",
|
||||
"buildOutputsResult": ${{ toJSON(steps.build_site.outputs.result) }},
|
||||
"deployOutcome": "${{ steps.deploy_site.outcome }}",
|
||||
"deployUrl": "${{ format('{0}/{1}{2}/', env.BASE_URL, env.PREFIX, env.SUFFIX) }}",
|
||||
"githubActor": "${{ github.actor }}",
|
||||
"githubEventName": "${{ github.event_name }}",
|
||||
"githubWorkflow": "${{ github.workflow }}",
|
||||
"githubRunNumber": "${{ github.run_number }}",
|
||||
"githubRunAttempt": "${{ github.run_attempt }}"
|
||||
"gitActor": "${{ gitea.actor }}",
|
||||
"gitEventName": "${{ gitea.event_name }}",
|
||||
"gitWorkflow": "${{ gitea.workflow }}",
|
||||
"gitRunNumber": "${{ gitea.run_number }}",
|
||||
"gitRunAttempt": "${{ gitea.run_attempt }}"
|
||||
}
|
||||
config-file: ".gitea/pr-commenter.yml"
|
||||
- name: Fail on error
|
||||
id: fail-on-error
|
||||
if: |
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
comment:
|
||||
glob-options:
|
||||
dot: true
|
||||
snippets:
|
||||
- id: asciidoc-{{ asciidocOutcome }}
|
||||
files:
|
||||
- '**'
|
||||
body: |
|
||||
#### :hammer: AsciiDoc conversion `{{ asciidocOutcome }}`
|
||||
|
||||
- id: verify-{{ verifyOutcome }}
|
||||
files:
|
||||
- '**'
|
||||
body: |
|
||||
#### :mag: Broken link verification `{{ verifyOutcome }}`
|
||||
<details><summary>Verification Output</summary>
|
||||
|
||||
```
|
||||
{{ verifyOutputsResult }}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
- id: deploy-{{ deployOutcome }}
|
||||
files:
|
||||
- '**'
|
||||
body: |
|
||||
#### :rocket: AsciiDoc deploy `{{ deployOutcome }}`
|
||||
#### :link: Preview documentation [here]({{ deployUrl }})
|
||||
|
||||
- id: pusher-{{ githubActor }}-{{ githubEventName }}-{{ githubRunNumber }}-{{ githubRunAttempt }}
|
||||
files:
|
||||
- '**'
|
||||
body: |
|
||||
*Pusher: @{{ githubActor }}, Action: `{{ githubEventName }}`, Workflow: `{{ githubWorkflow }}`, Run: {{ githubRunNumber }}/{{ githubRunAttempt }}*
|
Loading…
Reference in New Issue