From 73624c159e31e0ca4ffe1f7789425f8220b6d169 Mon Sep 17 00:00:00 2001 From: splincode Date: Tue, 24 Sep 2024 11:14:48 +0300 Subject: [PATCH] ci: cleanup workflow yml files --- .github/workflows/auto-add-to-project.yml | 12 ------------ .github/workflows/auto-approve.yml | 10 ++-------- .github/workflows/auto-dependency-review.yml | 12 ------------ .github/workflows/auto-remove-label.yml | 11 ----------- .github/workflows/build.yml | 2 -- .github/workflows/deploy-preview.yml | 1 - .github/workflows/deploy.yml | 3 ++- .github/workflows/e2e.yml | 6 ------ .github/workflows/release.yml | 1 - .github/workflows/test.yml | 1 - 10 files changed, 4 insertions(+), 55 deletions(-) delete mode 100644 .github/workflows/auto-add-to-project.yml delete mode 100644 .github/workflows/auto-dependency-review.yml delete mode 100644 .github/workflows/auto-remove-label.yml diff --git a/.github/workflows/auto-add-to-project.yml b/.github/workflows/auto-add-to-project.yml deleted file mode 100644 index b2ce87c88..000000000 --- a/.github/workflows/auto-add-to-project.yml +++ /dev/null @@ -1,12 +0,0 @@ -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.84.0 - with: - token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 27ad680c3..9d3afb618 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -3,7 +3,6 @@ on: pull_request env: PR_JOBS_NAME: '[ "Packages", "Demo", "Firebase", "Lint result", "tests", "E2E result" ]' - RELEASE_JOBS_NAME: '[ "Publish" ]' jobs: setup: @@ -14,12 +13,7 @@ jobs: - uses: taiga-family/ci/actions/setup/checkout@v1.84.0 - uses: taiga-family/ci/actions/setup/variables@v1.84.0 - id: matrix - run: | - if [[ "${{ env.IS_RELEASE_BRANCH }}" == "false" ]]; then - echo "value=$PR_JOBS_NAME" >> $GITHUB_OUTPUT - else - echo "value=$RELEASE_JOBS_NAME" >> $GITHUB_OUTPUT - fi + run: echo "value=$PR_JOBS_NAME" >> $GITHUB_OUTPUT wait: needs: [setup] @@ -46,7 +40,7 @@ jobs: token1: ${{ secrets.GITHUB_TOKEN }} token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }} - uses: taiga-family/ci/actions/run/merge@v1.84.0 - if: ${{ env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true' && env.IS_RELEASE_BRANCH == 'false' }} + if: ${{ env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true' }} with: token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} diff --git a/.github/workflows/auto-dependency-review.yml b/.github/workflows/auto-dependency-review.yml deleted file mode 100644 index 30c682329..000000000 --- a/.github/workflows/auto-dependency-review.yml +++ /dev/null @@ -1,12 +0,0 @@ -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.84.0 - - uses: taiga-family/ci/actions/security/dependency-review@v1.84.0 diff --git a/.github/workflows/auto-remove-label.yml b/.github/workflows/auto-remove-label.yml deleted file mode 100644 index bf7115598..000000000 --- a/.github/workflows/auto-remove-label.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: 🤖 Auto remove label on closed issue -on: - issues: - types: [closed] - -jobs: - remove_label: - runs-on: ubuntu-latest - steps: - - uses: taiga-family/ci/actions/setup/checkout@v1.84.0 - - uses: taiga-family/ci/actions/auto/remove-label@v1.84.0 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e80f3bd04..2e3bc5320 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,6 @@ on: jobs: build-packages: name: Packages - if: ${{ !contains(github.head_ref, 'release/') }} runs-on: ubuntu-latest steps: - uses: taiga-family/ci/actions/setup/checkout@v1.84.0 @@ -17,7 +16,6 @@ jobs: build-demo: name: Demo - if: ${{ !contains(github.head_ref, 'release/') }} runs-on: ubuntu-latest steps: - uses: taiga-family/ci/actions/setup/checkout@v1.84.0 diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 80d02ac49..1377cf56d 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -4,7 +4,6 @@ on: pull_request jobs: build_and_preview: - if: ${{ !contains(github.head_ref, 'release/') }} name: Firebase runs-on: ubuntu-latest steps: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3fa37a2c6..b772fd5bb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,11 +2,12 @@ name: Deploy on: workflow_dispatch: push: - branches: ['release/*'] + branches: [main] jobs: deploy: runs-on: ubuntu-latest + if: "contains(github.event.head_commit.message, 'chore(release)')" steps: - uses: taiga-family/ci/actions/setup/checkout@v1.84.0 - uses: taiga-family/ci/actions/setup/variables@v1.84.0 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 4934d16e2..00c756bfd 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -9,7 +9,6 @@ env: jobs: build-demo: - if: ${{ !contains(github.head_ref, 'release/') }} name: Build demo runs-on: ubuntu-latest steps: @@ -35,7 +34,6 @@ jobs: run: npm run build:ssr e2e-kit: - if: ${{ !contains(github.head_ref, 'release/') }} needs: [build-demo] runs-on: ubuntu-latest strategy: @@ -65,7 +63,6 @@ jobs: env.UNIVERSAL_SERVER}} e2e-recipes: - if: ${{ !contains(github.head_ref, 'release/') }} needs: [build-demo] runs-on: ubuntu-latest name: Recipes @@ -89,7 +86,6 @@ jobs: run: npx nx e2e demo-integrations --spec="**/recipes/**/*.cy.ts" --baseUrl=${{ env.UNIVERSAL_SERVER}} e2e-others: - if: ${{ !contains(github.head_ref, 'release/') }} needs: [build-demo] runs-on: ubuntu-latest name: Others @@ -117,7 +113,6 @@ jobs: env.UNIVERSAL_SERVER}} component-testing: - if: ${{ !contains(github.head_ref, 'release/') }} runs-on: ubuntu-latest name: Component Testing steps: @@ -129,7 +124,6 @@ jobs: run: npx nx component-test demo-integrations --browser=chrome result: - if: ${{ !contains(github.head_ref, 'release/') }} needs: [build-demo, e2e-kit, e2e-recipes, e2e-others, component-testing] runs-on: ubuntu-latest name: E2E result diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 623c1ae63..0e6ceb03b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,6 @@ on: jobs: release: runs-on: ubuntu-latest - if: !contains(github.event.head_commit.message , 'chore(release)') steps: - uses: taiga-family/ci/actions/setup/checkout@v1.84.0 - uses: taiga-family/ci/actions/setup/variables@v1.84.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2c999beff..0d6021fee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,6 @@ on: jobs: tests: - if: ${{ !contains(github.head_ref, 'release/') }} runs-on: ubuntu-latest steps: - uses: taiga-family/ci/actions/setup/checkout@v1.84.0