Skip to content

Commit

Permalink
ci: combine workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 20, 2024
1 parent d4099d2 commit c624c03
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 97 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/auto-add-version-label.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/auto-author-assign.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/auto-dependency-review.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/auto-label.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/auto-remove-label.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/delete-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Close PR delete firebase channel
on:
pull_request:
types: [closed]

jobs:
delete_firebase_channel:
runs-on: ubuntu-latest
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/auto-approve.yml → .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,40 @@ jobs:
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

label-when-approved:
name: Label when approved
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/auto/[email protected]
with:
approvals: 2
token: ${{ secrets.GITHUB_TOKEN }}

assign-author:
name: PR author as an assignee
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: toshimaru/[email protected]
if: env.IS_OWNER_MODE == 'true'
with:
repo-token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

label-version:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/run/[email protected]
id: nodejs-workspace
- uses: actions-ecosystem/action-add-labels@v1
continue-on-error: true
with:
labels: v${{ steps.nodejs-workspace.outputs.root-package-major-version }}

concurrency:
group: auto-approve-${{ github.head_ref }}
cancel-in-progress: true

0 comments on commit c624c03

Please sign in to comment.