Changing logic for PR creation.
This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
||||
run: |
|
||||
curl -sSL https://dl.gitea.com/tea/main/tea-main-linux-amd64 -o /usr/local/bin/tea
|
||||
chmod +x /usr/local/bin/tea
|
||||
echo "Merging PR..."
|
||||
echo "Listing PRs..."
|
||||
tea login add --name gitea-rinoa --url "${{ vars.RINOA_GITEA_URL }}" --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token "${{ secrets.BOT_GITEA_TOKEN }}"
|
||||
tea pr ls --repo ${{ github.repository }} --state open --output csv | egrep 'open'
|
||||
if [ $? -eq 0 ]; then
|
||||
@@ -28,10 +28,6 @@ jobs:
|
||||
echo "pr_index=${pr_index}" >> "$GITHUB_OUTPUT"
|
||||
echo "list_exit=$?" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: List PRs
|
||||
run: |
|
||||
echo "PR count: ${{ steps.list-prs.outputs.pullRequestNumbers }}"
|
||||
|
||||
- name: Create PR
|
||||
if: steps.list-prs.outputs.list_exit != 0
|
||||
uses: arifer612/Gitea-PR-action@v1.2.0
|
||||
|
||||
Reference in New Issue
Block a user