This commit is contained in:
2025-01-08 17:41:59 -05:00
parent 66cf74a3bf
commit 447da2facb
+2 -2
View File
@@ -30,9 +30,9 @@ jobs:
tea login add --name gitea-rinoa --url ${{ secrets.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
tea login default gitea-rinoa
pr_state=$(tea pr ls --repo ${{ gitea.repository }} --state open --output yaml | yq '.[].state')
if [ ${pr_state} != 'open' ]; then
if [ -z "${pr_state}" ]; then
tea pr c -r ${{ gitea.repository }} -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}"
elif [ ${pr_state} == 'open' ]; then
elif [ ${pr_state} -eq '"open"' ]; then
echo "PR already exists, skipping creation..."
fi