diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..1adf09d0 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["github>taiga-family/renovate-config"], + "automerge": false +} diff --git a/.github/workflows/auto-add-to-project.yml b/.github/workflows/auto-add-to-project.yml new file mode 100644 index 00000000..2a0f810b --- /dev/null +++ b/.github/workflows/auto-add-to-project.yml @@ -0,0 +1,12 @@ +name: 🤖 Auto move new issues into Triage +on: + issues: + types: [opened] + +jobs: + automate-project-columns: + runs-on: ubuntu-latest + steps: + - uses: taiga-family/ci/actions/setup/project@v1.36.2 + with: + token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 00000000..26c57c35 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,46 @@ +name: 🤖 Auto approve validation +on: pull_request + +env: + PR_JOBS_NAME: '[ "Deploy" ]' + +jobs: + setup: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.matrix.outputs.value }} + steps: + - uses: taiga-family/ci/actions/setup/checkout@v1.36.2 + - uses: taiga-family/ci/actions/setup/variables@v1.36.2 + - id: matrix + if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true' + run: echo "value=$JOBS_NAME" >> $GITHUB_OUTPUT + + wait: + needs: [setup] + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + value: ${{ fromJSON(needs.setup.outputs.matrix) }} + steps: + - uses: taiga-family/ci/actions/run/wait-job@v1.36.2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + job: ${{ matrix.value }} + + approve: + needs: [wait] + runs-on: ubuntu-latest + steps: + - uses: taiga-family/ci/actions/auto/approve/double@v1.36.2 + with: + token1: ${{ secrets.GITHUB_TOKEN }} + token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }} + - uses: taiga-family/ci/actions/run/merge@v1.36.2 + with: + token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} + +concurrency: + group: auto-approve-${{ github.head_ref }} + cancel-in-progress: true diff --git a/.github/workflows/auto-cleanup-caches.yml b/.github/workflows/auto-cleanup-caches.yml new file mode 100644 index 00000000..6132fd60 --- /dev/null +++ b/.github/workflows/auto-cleanup-caches.yml @@ -0,0 +1,23 @@ +name: 🤖 Auto cleanup caches +on: + push: + branches: [main, 'v[0-9]+.x'] + pull_request: + types: + - closed + +jobs: + cleanup: + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: taiga-family/ci/actions/setup/checkout@v1.36.2 + - uses: taiga-family/ci/actions/auto/cleanup-cache@v1.36.2 + if: github.event_name == 'push' + with: + branch-name: ${{ github.head_ref || github.ref_name }} + - uses: taiga-family/ci/actions/auto/cleanup-cache@v1.36.2 + if: github.event_name == 'pull_request' + with: + branch-name: refs/pull/${{ github.event.pull_request.number }}/merge diff --git a/.github/workflows/auto-dependency-review.yml b/.github/workflows/auto-dependency-review.yml new file mode 100644 index 00000000..fc95a717 --- /dev/null +++ b/.github/workflows/auto-dependency-review.yml @@ -0,0 +1,12 @@ +name: 🤖 Auto dependency review +on: + pull_request: +permissions: + contents: read + +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - uses: taiga-family/ci/actions/setup/checkout@v1.36.2 + - uses: taiga-family/ci/actions/security/dependency-review@v1.36.2 diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml new file mode 100644 index 00000000..3e06df7b --- /dev/null +++ b/.github/workflows/auto-label.yml @@ -0,0 +1,13 @@ +name: 🤖 Auto label +on: pull_request_review + +jobs: + label-when-approved: + name: Label when approved + runs-on: ubuntu-latest + steps: + - uses: taiga-family/ci/actions/setup/checkout@v1.36.2 + - uses: taiga-family/ci/actions/setup/variables@v1.36.2 + - uses: taiga-family/ci/actions/auto/label-when-approved@v1.36.2 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a2383143..e1429a63 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,7 @@ on: jobs: deploy: + name: Deploy runs-on: ubuntu-latest steps: - uses: taiga-family/ci/actions/setup/checkout@v1.36.2