This commit is contained in:
2025-01-08 18:03:06 -05:00
parent b8cc7d5fce
commit e0c56559d4
+3 -3
View File
@@ -29,10 +29,10 @@ jobs:
run: |
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 [ -z "${pr_state}" ]; then
pr_state=$(tea pr ls --repo ${{ gitea.repository }} --state open --output yaml | yq -r '.[].state')
if [ "${pr_state}" != open ]; then
tea pr c -r ${{ gitea.repository }} -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}"
elif [ ${pr_state} -eq '"open"' ]; then
elif [ "${pr_state}" = open ]; then
echo "PR already exists, skipping creation..."
fi