Skip to content

Commit

Permalink
chore: use the pull request head to run the integration tests (#1202)
Browse files Browse the repository at this point in the history
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

This will use the Pull Request Branch Reference and Repository to
checkout OCM

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
  • Loading branch information
jakobmoellerdev authored Dec 18, 2024
1 parent 104d276 commit 206d8c1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions:

jobs:
test:
if: github.event_name == 'push'
name: Run tests
uses: open-component-model/ocm-integrationtest/.github/workflows/integrationtest.yaml@main
permissions:
Expand All @@ -24,4 +25,17 @@ jobs:
packages: write
secrets: inherit
with:
ref: ${{ github.ref }}
ref: ${{ github.ref }}
repo: ${{ github.repository }}
test-pr:
if: github.event_name == 'pull_request_target'
name: Run tests
uses: open-component-model/ocm-integrationtest/.github/workflows/integrationtest.yaml@main
permissions:
contents: write
id-token: write
packages: write
secrets: inherit
with:
ref: ${{ github.event.pull_request.head.ref }}
repo: ${{ github.event.pull_request.head.repo.name }}

0 comments on commit 206d8c1

Please sign in to comment.