From cafc290844c9ed1af33fb42a957629f7ef36554a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20M=C3=B6ller?= Date: Wed, 18 Dec 2024 10:52:12 +0100 Subject: [PATCH] chore: allow override of repository from workflow call (#35) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. ## What type of PR is this? (check all applicable) - [ ] 🍕 Feature - [ ] 🐛 Bug Fix - [ ] 📝 Documentation Update - [ ] 🎨 Style - [ ] 🧑‍💻 Code Refactor - [ ] 🔥 Performance Improvements - [ ] ✅ Test - [ ] 🤖 Build - [ ] 🔁 CI - [ ] 📦 Chore (Release) - [ ] ⏩ Revert ## Related Tickets & Documents - Related Issue # (issue) - Closes # (issue) - Fixes # (issue) > Remove if not applicable ## Screenshots ## Added tests? - [ ] 👍 yes - [ ] 🙅 no, because they aren't needed - [ ] 🙋 no, because I need help Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration ## Added to documentation? - [ ] 📜 README.md - [ ] 🙅 no documentation needed ## Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- .github/workflows/integrationtest.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integrationtest.yaml b/.github/workflows/integrationtest.yaml index c810f40..fb19684 100644 --- a/.github/workflows/integrationtest.yaml +++ b/.github/workflows/integrationtest.yaml @@ -25,6 +25,11 @@ on: OCMBOT_PRIV_KEY: required: true inputs: + repo: + description: "The repo to checkout, can be used to reference other repositories" + required: false + default: 'open-component-model/ocm' + type: string ref: description: "The ref to checkout for OCM" required: true @@ -32,6 +37,7 @@ on: type: string env: + REPO: ${{ inputs.repo }} REF: main REF_FROM_OTHER_WORKFLOW: ${{ inputs.ref != '' }} permissions: @@ -76,7 +82,7 @@ jobs: uses: actions/checkout@v4 if: ${{ ! inputs.use-release }} with: - repository: open-component-model/ocm + repository: ${{ env.REPO }} ref: ${{ env.REF }} path: ocm token: ${{ steps.generate_token.outputs.token }}