...
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user