Skip to content

Rework the client registration workflow and client id #93

Rework the client registration workflow and client id

Rework the client registration workflow and client id #93

Workflow file for this run

---
name: Run Pull Request CI Verification
on:
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
container:
image: registry.suse.com/bci/golang:1.21-openssl
steps:
- name: Checkout PR sources
uses: actions/checkout@v4
with:
path: telemetry-server
- name: Select Telemetry Repo Branch
id: telemetry-repo-branch
run: |
branch="$(echo "${{ github.event.pull_request.body }}" |
grep -o "^[[:space:]]*TelemetryRepoBranch: .*$" |
cut -d":" -f2 | tr -d '[[:space:]]' || true)"
[[ -n "${branch}" ]] || branch=main
echo "TelemetryRepoBranch=${branch}" >> "$GITHUB_OUTPUT"
echo "TELEMETRY_REPO_BRANCH=${branch}" >> "$GITHUB_ENV"
- name: Debug TelemetryRepoBranch
run: |
echo "TelemetryRepoBranch=${{ steps.telemetry-repo-branch.outputs.TelemetryRepoBranch }}"
echo "TELEMETRY_REPO_BRANCH=${TELEMETRY_REPO_BRANCH}"
- name: Checkout SUSE/telemetry companion sources
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: SUSE/telemetry
path: telemetry
ref: "${{ steps.telemetry-repo-branch.outputs.TelemetryRepoBranch }}"
- name: Run tests in verbose mode
run: cd telemetry-server && make test-verbose