From a40fc87884ede91a0fefb093adaf5261dcec84d3 Mon Sep 17 00:00:00 2001 From: dhommen Date: Wed, 24 Jan 2024 20:55:23 +0100 Subject: [PATCH] fix(ci): disable docker images and add_pullrequest_to_project for fork prs --- .github/workflows/add_pullrequest_to_project.yml | 1 + .github/workflows/ci.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/add_pullrequest_to_project.yml b/.github/workflows/add_pullrequest_to_project.yml index 9ca64829c..354a936ce 100644 --- a/.github/workflows/add_pullrequest_to_project.yml +++ b/.github/workflows/add_pullrequest_to_project.yml @@ -5,6 +5,7 @@ on: jobs: add_pullrequest_to_project: + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} name: add_pullrequest_to_project runs-on: ubuntu-latest steps: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4fa54181..e240d82ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,6 +91,7 @@ jobs: USERNAME: ${{ github.actor }} TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: "Docker Image: edc-dev" + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} uses: ./.github/actions/build-connector-image with: registry-url: ${{ env.REGISTRY_URL }} @@ -102,6 +103,7 @@ jobs: title: "sovity Dev EDC Connector" description: "Extended EDC Connector built by sovity. This dev version contains no dataspace auth and can be used to quickly start a locally running EDC + EDC UI." - name: "Docker Image: edc-ce" + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} uses: ./.github/actions/build-connector-image with: registry-url: ${{ env.REGISTRY_URL }} @@ -113,6 +115,7 @@ jobs: title: "sovity Community Edition EDC Connector" description: "EDC Connector built by sovity. Contains sovity's Community Edition EDC extensions and requires dataspace credentials to join an existing dataspace." - name: "Docker Image: edc-ce-mds" + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} uses: ./.github/actions/build-connector-image with: registry-url: ${{ env.REGISTRY_URL }} @@ -124,6 +127,7 @@ jobs: title: "MDS Community Edition EDC Connector" description: "EDC Connector built by sovity and configured for compatibility with the Mobility Data Space (MDS). This EDC requires dataspace credentials, and additional MDS Services such as a Clearing House." - name: "Docker Image: test-backend" + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} uses: ./.github/actions/build-connector-image with: registry-url: ${{ env.REGISTRY_URL }}