Skip to content

Commit d37ea65

Browse files
clean up
1 parent 1ce3f25 commit d37ea65

File tree

3 files changed

+154
-204
lines changed

3 files changed

+154
-204
lines changed

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ jobs:
125125
run-ketryx-report:
126126
needs: test
127127
uses: ./.github/workflows/report-to-ketryx.yml
128-
# if: github.ref == 'refs/heads/main'
128+
if: github.ref == 'refs/heads/main'
129129
with:
130130
commit-sha: ${{ github.sha }}
131131
build-name: "pre-release"
132132
secrets:
133-
KETRYX_PROJECT: KXPRJ7F47PAK8VB9B4BB0G4AYCXCBSY
133+
KETRYX_PROJECT: KXPRJ7F47PAK8VB9B4BB0G4AYCXCBSY # not a secret
134134
KETRYX_API_KEY: ${{ secrets.KETRYX_API_KEY }}
135135

136136
release:

.github/workflows/report-to-ketryx.yml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
name: 'Ketryx report'
22

33
on:
4-
# MANUAL:
5-
# Go to: Actions tab → Ketryx Report → Run workflow
64
workflow_dispatch:
75
inputs:
86
branch:
97
description: 'Branch to test (leave empty for main)'
108
required: false
119
type: string
1210
default: ''
13-
14-
# REUSABLE WORKFLOW: Allows other workflows to call this one
15-
# This is how ci-cd.yml calls this workflow before releases
11+
1612
workflow_call:
17-
# INPUTS: Data passed from calling workflow (ci-cd.yml)
1813
inputs:
1914
commit-sha:
2015
description: 'The commit SHA to report'
2116
required: true
2217
type: string
23-
# Example: ci-cd.yml passes ${{ github.sha }} here
2418
build-name:
2519
description: 'The build name to report'
2620
required: true
@@ -32,29 +26,15 @@ on:
3226
KETRYX_API_KEY:
3327
description: 'Ketryx API key'
3428
required: true
35-
36-
# TODO: disable after testing is done
3729
push:
38-
branches:
39-
- main
40-
41-
# TODO: enable once testing is done
42-
# push:
43-
# tags:
44-
# - 'sdk-v*' # Matches semantic-release SDK tags
45-
# - 'cli-v*' # Matches semantic-release CLI tags
46-
30+
tags:
31+
- 'sdk-v*' # Matches semantic-release SDK tags
32+
- 'cli-v*' # Matches semantic-release CLI tags
4733

4834
jobs:
4935
report-to-ketryx:
5036
runs-on: ubuntu-latest
5137
steps:
52-
- name: Checkout code
53-
uses: actions/checkout@v4
54-
with:
55-
ref: ${{ inputs.branch || github.ref }}
56-
57-
# Download test results that ci-cd.yml already generated
5838
- name: Download SDK test results
5939
uses: actions/download-artifact@v4
6040
continue-on-error: true

0 commit comments

Comments
 (0)