You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2024/02/12 23:22:46 UTC
(airflow) 10/23: Ignore occasional GPG error exists when generating key (#37325)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-8-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 0b34ea283f6ad8a71738ab59b9d979319da32ee3
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun Feb 11 10:06:13 2024 +0100
Ignore occasional GPG error exists when generating key (#37325)
Sometimes we can have a GPG key exists because of race condition
in the current way Github Runner is used - where the same runner
is used more than once. In such case we simply ignore the error
that GPG key exists.
(cherry picked from commit 7cb3332d08ec53484f5062e381eaa1b4337c579e)
---
.github/workflows/ci.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d636b2eee4..8d1a8bfb2e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1107,7 +1107,8 @@ jobs:
breeze release-management prepare-helm-chart-tarball --ignore-version-check --override-tag
--skip-tag-signing --version 0.0.0 --version-suffix dev0
- name: Generate GPG key for signing
- run: gpg --batch --passphrase '' --quick-gen-key dev@airflow.apache.org default default
+ # Sometimes the key will be already added to the keyring, so we ignore the error
+ run: gpg --batch --passphrase '' --quick-gen-key dev@airflow.apache.org default default || true
- name: "Helm release package"
run: >
breeze release-management prepare-helm-chart-package --sign-email dev@airflow.apache.org