diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index d3b75fb..81f65eb 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -1,7 +1,7 @@ on: [push, pull_request] jobs: - static_analysis: + static-analysis: runs-on: runner-latest steps: - uses: actions/checkout@v4 @@ -11,4 +11,14 @@ jobs: run: pipx run pre-commit run ruff-format -a - name: Validate Yaml run: pipx run pre-commit run check-yaml -a - + export-trace: + runs-on: runner-latest + needs: [static-analysis] + steps: + - uses: https://forge.karnov.club/marc/opentelemetry-trace-export-forgejo-action@main + with: + otlp-endpoint: "http://otel.home.karnov.club:4318" + forgejo-token: ${{ secrets.GITHUB_TOKEN }} + forgejo-base-url: ${{ env.GITHUB_SERVER_URL }} + run-id: ${{ env.GITHUB_RUN_NUMBER }} + repo-name: ${{ env.GITHUB_REPOSITORY }}