From 9d5d56505c39c91fabade87757cd9b0b5a749185 Mon Sep 17 00:00:00 2001 From: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com> Date: Wed, 27 Mar 2024 01:21:47 +0300 Subject: [PATCH] ci: add format --- ...st.yaml => auto-merge-dependabot-pull-request.yaml} | 10 +++++----- .github/workflows/codeql.yaml | 5 ++++- .github/workflows/commitlint.yaml | 2 +- .github/workflows/create-pull-request.yaml | 2 +- .github/workflows/editorconfig.yaml | 6 +++--- .github/workflows/eslint.yaml | 6 +++--- .github/workflows/markdown.yaml | 6 +++--- .github/workflows/pre-commit.yaml | 2 +- .github/workflows/prettier.yaml | 6 +++--- .github/workflows/release.yaml | 6 +++--- .github/workflows/semantic-pull-request-title.yaml | 6 +++--- .github/workflows/test.yaml | 4 ++-- 12 files changed, 32 insertions(+), 29 deletions(-) rename .github/workflows/{dependabot-auto-merge-pull-request.yaml => auto-merge-dependabot-pull-request.yaml} (83%) diff --git a/.github/workflows/dependabot-auto-merge-pull-request.yaml b/.github/workflows/auto-merge-dependabot-pull-request.yaml similarity index 83% rename from .github/workflows/dependabot-auto-merge-pull-request.yaml rename to .github/workflows/auto-merge-dependabot-pull-request.yaml index c82f55d..b5afc20 100644 --- a/.github/workflows/dependabot-auto-merge-pull-request.yaml +++ b/.github/workflows/auto-merge-dependabot-pull-request.yaml @@ -1,4 +1,4 @@ -name: Dependabot Auto Merge Pull Request +name: Auto Merge Dependabot Pull Request on: pull_request_target: @@ -10,14 +10,14 @@ permissions: pull-requests: write jobs: - dependabot-auto-merge-pull-request: - name: Merge + auto-merge-dependabot-pull-request: + name: Auto Merge Dependabot Pull Request + + if: ${{ github.actor == 'dependabot[bot]' }} runs-on: ubuntu-latest timeout-minutes: 10 - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - name: Dependabot Metadata id: metadata diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index b0da09d..a6853d0 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -6,11 +6,13 @@ on: - main paths: - index.ts + - package.json push: branches: - main paths: - index.ts + - package.json permissions: actions: read @@ -19,13 +21,14 @@ permissions: jobs: codeql: - name: Analyze + name: CodeQL runs-on: ubuntu-latest timeout-minutes: 10 strategy: fail-fast: false + matrix: language: - javascript-typescript diff --git a/.github/workflows/commitlint.yaml b/.github/workflows/commitlint.yaml index f553c8d..2e8e832 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -10,7 +10,7 @@ on: jobs: commit-lint: - name: Lint + name: Commit Lint runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/.github/workflows/create-pull-request.yaml b/.github/workflows/create-pull-request.yaml index 8dc5ed2..c52bc6b 100644 --- a/.github/workflows/create-pull-request.yaml +++ b/.github/workflows/create-pull-request.yaml @@ -5,7 +5,7 @@ on: jobs: create-pull-request: - name: On Branch Push + name: Create Pull Request runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/.github/workflows/editorconfig.yaml b/.github/workflows/editorconfig.yaml index 43c8923..7a49289 100644 --- a/.github/workflows/editorconfig.yaml +++ b/.github/workflows/editorconfig.yaml @@ -15,13 +15,13 @@ on: jobs: editorconfig: - name: Lint + name: Editorconfig + + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest timeout-minutes: 10 - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - name: Checkout Repository uses: actions/checkout@v4 diff --git a/.github/workflows/eslint.yaml b/.github/workflows/eslint.yaml index a30533d..55b67b4 100644 --- a/.github/workflows/eslint.yaml +++ b/.github/workflows/eslint.yaml @@ -15,13 +15,13 @@ on: jobs: eslint: - name: Lint + name: ESLint + + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest timeout-minutes: 10 - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - name: Checkout Repository uses: actions/checkout@v4 diff --git a/.github/workflows/markdown.yaml b/.github/workflows/markdown.yaml index 5114818..4c7740b 100644 --- a/.github/workflows/markdown.yaml +++ b/.github/workflows/markdown.yaml @@ -15,13 +15,13 @@ on: jobs: markdown: - name: Lint + name: Markdown + + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest timeout-minutes: 10 - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - name: Checkout Repository uses: actions/checkout@v4 diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index dd2b48f..d5adc08 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -7,7 +7,7 @@ on: jobs: pre-commit: - name: Lint + name: Pre-commit runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/.github/workflows/prettier.yaml b/.github/workflows/prettier.yaml index 984f80d..b3af173 100644 --- a/.github/workflows/prettier.yaml +++ b/.github/workflows/prettier.yaml @@ -15,13 +15,13 @@ on: jobs: prettier: - name: Lint + name: Prettier + + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest timeout-minutes: 10 - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - name: Checkout Repository uses: actions/checkout@v4 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3cf6dad..25db6d5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,13 +12,13 @@ on: jobs: release: - name: Version Increase + name: Release + + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest timeout-minutes: 10 - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - name: Generate Token id: generate_token diff --git a/.github/workflows/semantic-pull-request-title.yaml b/.github/workflows/semantic-pull-request-title.yaml index d48c9c2..bad9eab 100644 --- a/.github/workflows/semantic-pull-request-title.yaml +++ b/.github/workflows/semantic-pull-request-title.yaml @@ -11,13 +11,13 @@ on: jobs: semantic-pull-request-title: - name: Lint + name: Semantic Pull Request Title + + if: ${{ github.actor != 'dependabot[bot]' }} runs-on: ubuntu-latest timeout-minutes: 10 - if: ${{ github.actor != 'dependabot[bot]' }} - steps: - name: Lint env: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9900643..ee7e48c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,11 +17,11 @@ jobs: test: name: Test + if: ${{ github.event.workflow_run.conclusion == 'success' }} + runs-on: ubuntu-latest timeout-minutes: 10 - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - name: Checkout Repository uses: actions/checkout@v4