You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ts...@apache.org on 2022/08/25 03:01:34 UTC
[camel-k] branch main updated: chore(build): Restrict release workflow execution
This is an automated email from the ASF dual-hosted git repository.
tsato 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 fc696be6c chore(build): Restrict release workflow execution
fc696be6c is described below
commit fc696be6c7af63fb2a407ff5757e7daa683b4b97
Author: Christoph Deppisch <cd...@redhat.com>
AuthorDate: Wed Aug 24 09:58:38 2022 +0200
chore(build): Restrict release workflow execution
- Run workflow only on Camel K repository
- Avoid to run workflow on forks because it will fail
---
.github/workflows/release.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5e839db5f..26774974e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -23,6 +23,7 @@ on:
jobs:
main:
+ if: github.repository == 'apache/camel-k'
uses: ./.github/workflows/release-workflow.yml
with:
ref: "main"
@@ -33,6 +34,7 @@ jobs:
registryPassword: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }}
v1_8_x:
+ if: github.repository == 'apache/camel-k'
uses: ./.github/workflows/release-workflow.yml
with:
ref: "release-1.8.x"
@@ -43,6 +45,7 @@ jobs:
registryPassword: ${{ secrets.TEST_DOCKER_HUB_PASSWORD }}
v1_9_x:
+ if: github.repository == 'apache/camel-k'
uses: ./.github/workflows/release-workflow.yml
with:
ref: "release-1.9.x"