30 lines
746 B
YAML
30 lines
746 B
YAML
name: CI Engine
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
config-file:
|
|
required: true
|
|
type: string
|
|
secrets:
|
|
GITEA_TOKEN:
|
|
required: true
|
|
GIT_PAGES_PUBLISH_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
GIT_PAGES_PUBLISH_TOKEN: ${{ secrets.GIT_PAGES_PUBLISH_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Publish reports
|
|
run: bash scripts/publish.sh reports
|
|
|
|
- name: Set commit status
|
|
run: |
|
|
REPORT_URL="https://${PAGES_HOST}/${GITHUB_REPOSITORY}/reports/${GITHUB_SHA:0:8}/"
|
|
bash scripts/report-status.sh success "Reports published" "$REPORT_URL" ci-publish
|