Fix sonnar comments #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: allure-report | ||
on: | ||
workflow_call: | ||
inputs: | ||
artifact_name: | ||
required: true | ||
type: string | ||
workflow: | ||
required: true | ||
type: string | ||
jobs: | ||
allure: | ||
name: Generate Allure Report | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get Allure history | ||
uses: actions/checkout@v2 | ||
if: always() | ||
continue-on-error: true | ||
with: | ||
ref: gh-pages | ||
path: gh-pages | ||
- uses: LexisNexis-Public-GHA/sbs-action-download-artifact@v2.13.1 | ||
with: | ||
workflow: | | ||
${{ inputs.workflow }} | ||
name: | | ||
${{ inputs.artifact_name }} | ||
- name: Allure Report action from marketplace | ||
uses: simple-elf/allure-report-action@master | ||
if: always() | ||
with: | ||
allure_results: allure-results | ||
allure_history: allure-history | ||
keep_reports: 20 | ||
- name: Deploy report to Github Pages | ||
if: always() | ||
uses: peaceiris/actions-gh-pages@v2 | ||
env: | ||
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PUBLISH_BRANCH: gh-pages | ||
PUBLISH_DIR: allure-history |