From 43ccc1a3e279541aadae27c9b89e75702a4e2e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Hu=CC=88sers?= Date: Mon, 13 Nov 2023 14:57:39 +0100 Subject: [PATCH] fix: Add write access permission to deploy actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #33 Signed-Off-By: Mark Hüsers --- .github/workflows/deploy-release.yaml | 2 ++ .github/workflows/deploy-snapshot.yaml | 2 ++ .../main/kotlin/org/eclipse/kuksa/version/SemanticVersion.kt | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-release.yaml b/.github/workflows/deploy-release.yaml index eb8f12ca..777aa38e 100644 --- a/.github/workflows/deploy-release.yaml +++ b/.github/workflows/deploy-release.yaml @@ -7,6 +7,8 @@ on: tags: - 'release/v*' +permissions: write-all + jobs: deployment: runs-on: ubuntu-latest diff --git a/.github/workflows/deploy-snapshot.yaml b/.github/workflows/deploy-snapshot.yaml index 3cf474bf..07f17e13 100644 --- a/.github/workflows/deploy-snapshot.yaml +++ b/.github/workflows/deploy-snapshot.yaml @@ -7,6 +7,8 @@ on: branches: - main +permissions: write-all + jobs: deployment: runs-on: ubuntu-latest diff --git a/buildSrc/src/main/kotlin/org/eclipse/kuksa/version/SemanticVersion.kt b/buildSrc/src/main/kotlin/org/eclipse/kuksa/version/SemanticVersion.kt index 7aa0b0a6..6f50845d 100644 --- a/buildSrc/src/main/kotlin/org/eclipse/kuksa/version/SemanticVersion.kt +++ b/buildSrc/src/main/kotlin/org/eclipse/kuksa/version/SemanticVersion.kt @@ -14,7 +14,6 @@ * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 - * */ package org.eclipse.kuksa.version @@ -58,6 +57,6 @@ class SemanticVersion(semanticVersion: String) { patch = versions[2].toInt() this.suffix = suffix - print("New SemanticVersion($versionString)") + print("Current SemanticVersion($versionString)\n") } }