feature: Latest changes from likvid-cloudfoundation prod branch #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: auto pull request | |
on: | |
push: | |
branches: [ "feature/auto-backporting" ] | |
jobs: | |
pull_request: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check if PR exists | |
id: check_pr | |
run: | | |
existing_pr=$(gh pr list --state open --head feature/auto-backporting | wc -l) | |
if [ "$existing_pr" -gt 0 ]; then | |
echo "A pull request for the branch feature/auto-backporting already exists." | |
else | |
gh pr create --base main --head feature/auto-backporting --draft \ | |
--title "[latest likvid kits] update latest kits from likvid-cloudfoundation" \ | |
--body "The latest kits from likvid-cloudfoundation builds on the prod branch." | |
fi | |
env: | |
GH_TOKEN: ${{ github.token }} |