From 5bc7a8672f881a4412c1b5ed0f59ed8723fde4e2 Mon Sep 17 00:00:00 2001 From: Joaquin Araujo Date: Wed, 3 Jul 2024 21:13:08 +0100 Subject: [PATCH] Add ssh-agent to automating release in JMeterPlugins action --- .github/build_release_json.sh | 2 +- .github/workflows/publish_to_jmeter_plugins.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/build_release_json.sh b/.github/build_release_json.sh index c4e02a2..8490263 100644 --- a/.github/build_release_json.sh +++ b/.github/build_release_json.sh @@ -7,7 +7,7 @@ RELEASES_FILE="releases.json" ARTIFACT_URLS_FILE=".github/artifact_urls.temp" get_current_version_details() { - jq --arg version "$RELEASE_VERSION" '.[] | select(.version == ($version | tonumber))' "$RELEASES_FILE" + jq --arg version "$RELEASE_VERSION" '.[] | select(.version == $version)' "$RELEASES_FILE" } get_dependencies() { diff --git a/.github/workflows/publish_to_jmeter_plugins.yaml b/.github/workflows/publish_to_jmeter_plugins.yaml index 64047b8..718b069 100644 --- a/.github/workflows/publish_to_jmeter_plugins.yaml +++ b/.github/workflows/publish_to_jmeter_plugins.yaml @@ -23,7 +23,9 @@ jobs: releases.json .github/build_release_json.sh sparse-checkout-cone-mode: false - + - uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Get latest release version id: version run: | @@ -111,5 +113,5 @@ jobs: --body "Automated release process" \ --head $FORKED_REPO_USER:$BRANCH_NAME \ --base master \ - --repo $UPSTREAM_REPO_USER/$JMETER_PLUGINS_NAME + --repo $UPSTREAM_REPO_USER/$JMETER_PLUGINS_NAME \ --draft