Skip to content

Commit

Permalink
Fix automated deployment PR title (#8741)
Browse files Browse the repository at this point in the history
* Fix deploy PR title missing cluster name
* Fix yq extraction to only extract binary

Signed-off-by: Steven Sheehy <[email protected]>
  • Loading branch information
steven-sheehy authored Jul 10, 2024
1 parent 7fbf2df commit f259a1e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
VERSION: v4.44.2
run: |
mkdir -p "${TARGET}"
curl -sL https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz --output - | tar -xz
curl -sL https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz --output - | tar -xvz "${BINARY}"
mv ${BINARY} "${TARGET}/yq"
working-directory: ${{ env.RUNNER_TEMP }}

Expand Down Expand Up @@ -74,11 +74,11 @@ jobs:
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
author: ${{ steps.gpg_importer.outputs.name }} <${{ steps.gpg_importer.outputs.email }}>
body: Deploy v${{ steps.release.outputs.version }} to ${{ github.event.client_payload.metadata.path }}
branch: deploy-${{ github.event.client_payload.metadata.path }}-${{ steps.release.outputs.version }}
commit-message: Deploy v${{ steps.release.outputs.version }} to ${{ github.event.client_payload.metadata.path }}
body: Deploy v${{ steps.release.outputs.version }} to ${{ github.event.client_payload.metadata.namespaces }} in ${{ github.event.client_payload.metadata.cluster }}
branch: deploy-${{ github.event.client_payload.metadata.cluster }}-${{ steps.release.outputs.version }}
commit-message: Deploy v${{ steps.release.outputs.version }} to ${{ github.event.client_payload.metadata.namespaces }} in ${{ github.event.client_payload.metadata.cluster }}
committer: ${{ steps.gpg_importer.outputs.name }} <${{ steps.gpg_importer.outputs.email }}>
delete-branch: true
signoff: true
title: Deploy v${{ steps.release.outputs.version }} to ${{ github.event.client_payload.metadata.path }}
title: Deploy v${{ steps.release.outputs.version }} to ${{ github.event.client_payload.metadata.cluster }}
token: ${{ secrets.HEDERA_BOT_TOKEN }}

0 comments on commit f259a1e

Please sign in to comment.