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: actions/github-list-pull-requests@v1.0 id: list-prs with: token: ${{ secrets.BOT_GITEA_TOKEN }} state: open - name: List PRs run: | echo "PR count: ${{ steps.list-prs.outputs.pullRequestNumbers }}" - 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