diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index f8faf16c..5c32320b 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -39,7 +39,7 @@ jobs: echo "Importing gpg key" echo -n "$GPG_KEY" | base64 --decode | gpg --import --batch >/dev/null # Extract the key ID from the list of secret keys - GPG_KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^sec/ {print $5}') + GPG_KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^fpr/ {print $10}') echo "Extracted GPG Key ID: $GPG_KEY_ID" # Automatically trust the key by creating a trust level entry for the key (ultimate trust) echo -e "$GPG_KEY_ID:6:" | gpg --import-ownertrust diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e691f890..753a45a9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,7 +39,7 @@ jobs: echo "Importing gpg key" echo -n "$GPG_KEY" | base64 --decode | gpg --import --batch >/dev/null # Extract the key ID from the list of secret keys - GPG_KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^sec/ {print $5}') + GPG_KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^fpr/ {print $10}') echo "Extracted GPG Key ID: $GPG_KEY_ID" # Automatically trust the key by creating a trust level entry for the key (ultimate trust) echo -e "$GPG_KEY_ID:6:" | gpg --import-ownertrust