Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/AutoUpdateBootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ jobs:
git config --global user.email "github-aws-sdk-dotnet-automation@amazon.com"
git config --global user.name "aws-sdk-dotnet-automation"

- name: Delete existing branch if it exists
if: steps.check_version.outputs.version_changed == 'true'
env:
GITHUB_TOKEN: ${{ env.AWS_SECRET_TOKEN }}
run: |
# Check if branch exists and delete it if it does
if git ls-remote --heads origin update-cdk-bootstrap-template | grep -q update-cdk-bootstrap-template; then
git push origin --delete update-cdk-bootstrap-template || true
fi

- name: Create Pull Request
if: steps.check_version.outputs.version_changed == 'true'
env:
Expand All @@ -104,4 +114,4 @@ jobs:
--title "Update CDK Bootstrap Template to Version ${{ steps.check_version.outputs.new_version }}" \
--base dev \
--head update-cdk-bootstrap-template \
--delete-branch
--fill
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will auto generate pr description via the commit id

Loading