name: CI Engine on: workflow_call: jobs: poc-report: runs-on: ubuntu-latest env: GITEA_API_URL: https://gitea.app.keskikuja.site PAGES_HOST: ci-reports.helm-dev.keskikuja.site GIT_PAGES_PUBLISH_URL: https://ci-reports.helm-dev.keskikuja.site GIT_PAGES_PUBLISH_TOKEN: ${{ secrets.GIT_PAGES_PUBLISH_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} steps: - uses: actions/checkout@v4 - name: Generate POC report run: | SHA8="${GITHUB_SHA:0:8}" mkdir -p "reports/${SHA8}" cat > "reports/${SHA8}/index.html" < POC report ${SHA8}

git-pages POC

Commit: ${GITHUB_SHA}

Branch: ${GITHUB_REF_NAME}

Run: ${GITHUB_RUN_ID}

EOF - name: Publish report to git-pages id: publish run: | REPORT_BASE=$(bash scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}") echo "report_url=${REPORT_BASE}/index.html" >> "${GITHUB_OUTPUT}" echo "Published: ${REPORT_BASE}/index.html" - name: Set commit status with report link run: | bash scripts/report-status.sh \ success \ "POC report published" \ "${{ steps.publish.outputs.report_url }}" \ "ci-report"