This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new 10bbd11e5 chore: Restrict nightly coverage workflow execution
10bbd11e5 is described below

commit 10bbd11e5866a930369f02718165eafe265e6ffa
Author: Christoph Deppisch <[email protected]>
AuthorDate: Mon May 8 10:39:13 2023 +0200

    chore: Restrict nightly coverage workflow execution
    
    - Only run workflow on GitHub repository 'apache/camel-k'
    - Avoids merge conflicts on forked repositories
---
 .github/workflows/nightly-coverage.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/nightly-coverage.yml 
b/.github/workflows/nightly-coverage.yml
index a6a0632aa..801312566 100644
--- a/.github/workflows/nightly-coverage.yml
+++ b/.github/workflows/nightly-coverage.yml
@@ -24,6 +24,7 @@ on:
 
 jobs:
   test:
+    if: github.repository == 'apache/camel-k'
     runs-on: ubuntu-20.04
     name: Update Coverage Badge
     steps:
@@ -90,4 +91,4 @@ jobs:
           CI_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
           CI_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
-          git push 
"https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git"; '${{ 
github.ref_name }}'
\ No newline at end of file
+          git push 
"https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git"; '${{ 
github.ref_name }}'

Reply via email to