name: Gitea Branch PR, SonarQube Analyze, and Merge Workflow on: push: branches-ignore: - main jobs: # Job 1: Check if PR exists and create one if the branch is new check-and-create-pr: name: Check and Create PR runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v4 - name: PR list uses: vicamo/gitea-list-pull-requests@v1.0.1 id: list-prs - name: Create PR if: steps.list-prs.outputs.pr-count == 0 uses: arifer612/Gitea-PR-action@v1.2.0 with: url: ${{ gitea.server_url }} token: ${{ secrets.BOT_GITEA_TOKEN }} assignee: ${{ gitea.actor }} - name: Linting uses: super-linter/super-linter@v7.2.1 env: GITHUB_CUSTOM_SERVER_URL: ${{ gitea.server_url }} GITHUB_CUSTOM_API_URL: ${{ gitea.server_url }}/api/v1