....
This commit is contained in:
@@ -21,12 +21,16 @@ jobs:
|
||||
name: 'tea'
|
||||
version: '0.9.2'
|
||||
|
||||
- name: Check opened PR
|
||||
- name: Check if open PR exists
|
||||
id: check-opened-pr-step
|
||||
uses: sogoagain/check-opened-pr-action@v0.1
|
||||
|
||||
- name: Create PR...
|
||||
if: steps.check-opened-pr-step.outputs.exists == 'false'
|
||||
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_exists=$(tea pr list --state open --head ${{ github.ref_name }} --repo ${{ github.repository }} | wc -l)
|
||||
echo "exists=$pr_exists" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create PR
|
||||
if: steps.check-opened-pr-step.outputs.exists == 0
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user