Skip to content

Commit

Permalink
Add ssh-agent to automating release in JMeterPlugins action
Browse files Browse the repository at this point in the history
  • Loading branch information
Baraujo25 committed Jul 3, 2024
1 parent fb004f4 commit 5bc7a86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/build_release_json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish_to_jmeter_plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
releases.json
.github/build_release_json.sh
sparse-checkout-cone-mode: false

- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Get latest release version
id: version
run: |
Expand Down Expand Up @@ -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

0 comments on commit 5bc7a86

Please sign in to comment.