Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
shkarface committed Dec 17, 2023
1 parent 71bd4ad commit 538c29c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ runs:
echo "#########################################################################################" > $TARGET_FILE
echo "# This file was automatically generated by the auto-deploy action. Do not edit manually.#" >> $TARGET_FILE
echo -e "#########################################################################################" >> $TARGET_FILE
echo -e "# GITHUB_REPOSITORY: $GITHUB_REPOSITORY" >> $TARGET_FILE
echo -e "\n" >> $TARGET_FILE
echo "#########################################################################################" >> $TARGET_FILE
echo "# GITHUB_REPOSITORY: $GITHUB_REPOSITORY" >> $TARGET_FILE
export IMAGE_TAG="${FULL_IMAGE_TAG##*:}" # Removes everything up to and including the last colon
export GITHUB_REPO_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
Expand Down Expand Up @@ -216,7 +215,7 @@ runs:
echo "PR already exists"
else
if [ $TARGET_ENV == "production" ]; then
export pr_url=$(gh pr create --title "Production release" --body "This PR was automatically created by the auto-deploy action" --base main --head $HEAD_BRANCH)
export pr_url=$(gh pr create --title "Production release" --body "Populating PR description with release notes :clock130: ..." --base main --head $HEAD_BRANCH)
elif [ $TARGET_ENV == "staging" ]; then
export pr_url=$(gh pr create --title "chore: Update ${{ inputs.component-name }} image tag in ${{ steps.get-environment.outputs.environment }}" --body "This PR was automatically created by the auto-deploy action" --base main --head $HEAD_BRANCH)
else
Expand Down

0 comments on commit 538c29c

Please sign in to comment.