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