1717# Inputs:
1818# - repo_runner_labels (string, required, default: ubuntu-latest): Runner label.
1919# - module_name (string, required): Module to override (e.g., score_baselibs).
20- # - ref_int_repo (string, optional, default: eclipse-score/reference_integration):
21- # The repository that provides the reusable integration workflows and tools.
22- # Use your private fork/org if you mirror this repo (e.g., my-org/reference_integration).
23- # Format: owner/repo
24- # - ref_int_ref (string, required, default: main):
25- # The ref on ref_int_repo to checkout via actions/checkout — can be a branch
26- # name, tag, or commit SHA. This ensures the workflow uses the exact version
27- # of the integration files you intend.
20+ # - target_branch (string, required, default: main):
21+ # The ref to checkout via actions/checkout — can be a branch name, tag, or
22+ # commit SHA. This ensures the workflow uses the exact version of the
23+ # integration files you intend.
24+ #
25+ # Repository Variables:
26+ # - reference_integration_repo (optional): Repository providing integration
27+ # workflows and tools (format: owner/repo). Supports private forks.
28+ # Default: eclipse-score/reference_integration
2829#
2930# Secrets:
3031# - REPO_READ_TOKEN (optional): Token for reading private repos; falls back to
3940# with:
4041# repo_runner_labels: ubuntu-latest
4142# module_name: score_baselibs
42- # ref_int_ref: main
43- # ref_int_repo: eclipse-score/reference_integration
43+ # target_branch: main
4444# secrets:
4545# REPO_READ_TOKEN: ${{ secrets.REPO_READ_TOKEN }}
4646#
47+ # Note: Set the 'reference_integration_repo' repository variable to use a
48+ # private fork (e.g., my-org/reference_integration).
49+ #
4750# Notes:
4851# - Extend the matrix in `integration-test` to cover additional configs.
4952
6164 description : ' Name of the module to override (e.g., score_baselibs).'
6265 required : true
6366 type : string
64- ref_int_ref :
65- description : ' Ref on ref_int_repo to checkout (branch, tag, or commit SHA).'
67+ target_branch :
68+ description : ' Ref to checkout (branch, tag, or commit SHA).'
6669 required : true
6770 type : string
6871 default : ' main'
69- ref_int_repo :
70- description : ' Repository providing integration workflows (owner/repo). Supports private forks.'
71- required : false
72- type : string
73- default : ' eclipse-score/reference_integration'
7472 secrets :
7573 REPO_READ_TOKEN :
7674 description : ' Token for reading repositories'
7775 required : false
7876
77+ env :
78+ REFERENCE_INTEGRATION_REPO : ${{ vars.reference_integration_repo != '' && vars.reference_integration_repo || 'eclipse-score/reference_integration' }}
79+
7980jobs :
8081 preparation :
8182 name : Preparation
@@ -86,13 +87,13 @@ jobs:
8687 - name : Checkout repository
8788 uses : actions/checkout@v4.2.2
8889 with :
89- repository : ${{ inputs.ref_int_repo }}
90- ref : ${{ inputs.ref_int_ref }}
90+ repository : ${{ env.REFERENCE_INTEGRATION_REPO }}
91+ ref : ${{ inputs.target_branch }}
9192 token : ${{ secrets.REPO_READ_TOKEN != '' && secrets.REPO_READ_TOKEN || github.token }}
9293 - name : Create updated known_good.json with PR commit
9394 id : set_known_good
9495 run : |
95- if [ "${{ github.repository }}" != "${{ inputs.ref_int_repo }}" ]; then
96+ if [ "${{ github.repository }}" != "${{ env.REFERENCE_INTEGRATION_REPO }}" ]; then
9697 echo "Overriding ${{ inputs.module_name }} with current PR"
9798 python3 tools/override_known_good_repo.py \
9899 --known known_good.json \
@@ -148,8 +149,7 @@ jobs:
148149 known_good : ${{ needs.preparation.outputs.known_good_updated }}
149150 config : ${{ matrix.config }}
150151 repo_runner_labels : ${{ inputs.repo_runner_labels }}
151- ref_int_ref : ${{ inputs.ref_int_ref }}
152- ref_int_repo : ${{ inputs.ref_int_repo }}
152+ target_branch : ${{ inputs.target_branch }}
153153
154154 summary :
155155 name : Publish Summary
0 commit comments