From 3649641bbc969a57ba22519af15a58ccd00921a5 Mon Sep 17 00:00:00 2001 From: Shakar Bakr <5h4k4r.b4kr@gmail.com> Date: Wed, 18 Oct 2023 16:22:55 +0300 Subject: [PATCH] Fix component name Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com> --- action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index f057281..86e88e7 100644 --- a/action.yml +++ b/action.yml @@ -151,15 +151,14 @@ runs: LABEL_NAME: auto-deploy TARGET_ENV: ${{ steps.get-environment.outputs.environment }} TARGET_FILE: ${{ steps.find-target-file.outputs.target_file }} - HEAD_BRANCH: update-${{ steps.component.outputs.component }}-${{ steps.get-environment.outputs.environment }} + HEAD_BRANCH: update-${{ inputs.component-name }}-${{ steps.get-environment.outputs.environment }} run: | - # do not create the PR if it already exists from the same branch if [[ $(gh pr list --state open --head $HEAD_BRANCH) ]]; then echo "PR already exists" else gh pr create \ - --title "chore: Update ${{ steps.component.outputs.component }} image tag to ${{ inputs.image-tag }} in ${{ steps.get-environment.outputs.environment }}" \ + --title "chore: Update ${{ inputs.component-name }} image tag to ${{ inputs.image-tag }} in ${{ steps.get-environment.outputs.environment }}" \ --body "This PR was automatically created by the auto-deploy action. Do not edit manually." \ --label auto-deploy fi