From 650ec161b980894bff41b3bbd43f8921914adc8a Mon Sep 17 00:00:00 2001 From: splincode Date: Tue, 3 Oct 2023 23:30:50 +0300 Subject: [PATCH] ci: add actions --- .github/workflows/auto-approve.yml | 7 +++---- .github/workflows/auto-author-assign.yml | 6 ++---- .github/workflows/auto-cleanup-caches.yml | 2 +- .github/workflows/auto-dependency-review.yml | 4 ++-- .github/workflows/auto-label.yml | 3 ++- .github/workflows/auto-remove-label.yml | 4 ++-- 6 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index f336e1a..83f919e 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -6,12 +6,11 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write - if: - github.actor == 'taiga-family-bot' && (contains(github.head_ref, 'release/') || contains(github.head_ref, - 'renovate/')) steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.0 + - uses: taiga-family/ci/actions/setup/variables@1.20.0 - uses: taiga-family/ci/actions/auto/approve/double@1.20.0 + if: env.TAIGA_FAMILY_BOT_IS_AUTHOR == 'true' with: token1: ${{ secrets.GITHUB_TOKEN }} token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }} diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml index ecd385f..7e269b2 100644 --- a/.github/workflows/auto-author-assign.yml +++ b/.github/workflows/auto-author-assign.yml @@ -8,11 +8,9 @@ jobs: name: PR author as an assignee runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.6.0 + - uses: actions/checkout@v4.1.0 - uses: taiga-family/ci/actions/setup/variables@1.20.0 - - - name: Auto assign + - uses: toshimaru/auto-author-assign@v2.0.1 if: env.IS_OWNER_MODE == 'true' - uses: toshimaru/auto-author-assign@v1.6.2 with: repo-token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} diff --git a/.github/workflows/auto-cleanup-caches.yml b/.github/workflows/auto-cleanup-caches.yml index f5ce691..2b610d8 100644 --- a/.github/workflows/auto-cleanup-caches.yml +++ b/.github/workflows/auto-cleanup-caches.yml @@ -12,7 +12,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v3.6.0 + - uses: actions/checkout@v4.1.0 - uses: taiga-family/ci/actions/auto/cleanup-cache@1.20.0 if: github.event_name == 'push' with: diff --git a/.github/workflows/auto-dependency-review.yml b/.github/workflows/auto-dependency-review.yml index bf7bd07..54f1039 100644 --- a/.github/workflows/auto-dependency-review.yml +++ b/.github/workflows/auto-dependency-review.yml @@ -8,5 +8,5 @@ jobs: dependency-review: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.6.0 - - uses: taiga-family/ci/actions/security/dependency-review@1.11.1 + - uses: actions/checkout@v4.1.0 + - uses: taiga-family/ci/actions/security/dependency-review@1.20.0 diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 0681978..956c6a4 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -6,8 +6,9 @@ jobs: name: Label when approved runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.6.0 + - uses: actions/checkout@v4.1.0 - uses: taiga-family/ci/actions/setup/variables@1.20.0 - uses: taiga-family/ci/actions/auto/label-when-approved@1.20.0 with: + approvals: 1 token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/auto-remove-label.yml b/.github/workflows/auto-remove-label.yml index 616e76f..7516c7d 100644 --- a/.github/workflows/auto-remove-label.yml +++ b/.github/workflows/auto-remove-label.yml @@ -7,5 +7,5 @@ jobs: remove_label: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.6.0 - - uses: taiga-family/ci/actions/auto/remove-label@1.11.1 + - uses: actions/checkout@v4.1.0 + - uses: taiga-family/ci/actions/auto/remove-label@1.20.0