Skip to content

Commit

Permalink
Fix component name
Browse files Browse the repository at this point in the history
Signed-off-by: Shakar Bakr <[email protected]>
  • Loading branch information
5h4k4r committed Oct 18, 2023
1 parent 6960db8 commit 3649641
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3649641

Please sign in to comment.