From 4c32951b4c7ea65e752cf833e3a34eedb84b0cf6 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Wed, 26 Jul 2023 01:13:54 +0100 Subject: [PATCH] ci: refactor workflow names --- .github/workflows/file-checker.yml | 9 +++++---- .github/workflows/format.yml | 4 ++-- .github/workflows/generate.yml | 7 ++++--- .github/workflows/issues.yml | 4 +++- .github/workflows/pull-requests.yml | 2 ++ .github/workflows/typos.yml | 7 +++---- 6 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/file-checker.yml b/.github/workflows/file-checker.yml index 58277cb..9050e5e 100644 --- a/.github/workflows/file-checker.yml +++ b/.github/workflows/file-checker.yml @@ -1,4 +1,4 @@ -name: Required Files Checker +name: File Checker on: workflow_dispatch: @@ -6,14 +6,15 @@ on: jobs: file-checker: - name: Check for Missing Files + name: Required Files Included runs-on: ubuntu-latest + steps: - uses: actions/checkout@v3 - - name: Check + - name: Check Files run: | MISSING_FILES=0 - echo "# Missing Files Found 😠" >> $GITHUB_STEP_SUMMARY + echo "# Missing Files Found 😢" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY required_files=( diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 94806d2..b758076 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -7,6 +7,7 @@ on: jobs: prettier: + name: Format Code runs-on: ubuntu-latest steps: @@ -15,8 +16,7 @@ jobs: token: ${{ github.ref == 'refs/heads/main' && secrets.USERSTYLES_TOKEN || github.token }} # Make sure the actual branch is checked out when running on pull requests ref: ${{ github.head_ref }} - - - name: Run prettier + - name: Run Prettier uses: creyD/prettier_action@v4.3 with: commit_options: "--author 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'" diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 696fe62..fb8454f 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -1,4 +1,4 @@ -name: Generate Health Files +name: File Generator on: workflow_dispatch: @@ -12,7 +12,8 @@ env: jobs: generate-health-files: runs-on: ubuntu-latest - name: Re-generate README, CODEOWNERS, pr-labeler.yml & issue-labeler.yml + name: Generate Health Files + steps: - uses: actions/checkout@v3 with: @@ -30,7 +31,7 @@ jobs: key: ${{ hashFiles('src/generate/deno.lock') }} path: ${{ env.DENO_DIR }} - - name: Update README, CODEOWNERS, pr-labeler.yml & issue-labeler.yml + - name: Update Health Files working-directory: src/generate run: ./generate.ts diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index db4eac0..4b3365e 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -7,7 +7,9 @@ on: jobs: triage: + name: Add Labels runs-on: ubuntu-latest + steps: - uses: github/issue-labeler@v3.1 with: @@ -16,4 +18,4 @@ jobs: enable-versioned-regex: 0 include-title: 1 sync-labels: 1 -# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json \ No newline at end of file +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index a62a49e..bf18429 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -5,7 +5,9 @@ on: jobs: triage: + name: Add Labels runs-on: ubuntu-latest + steps: - uses: actions/checkout@v3 - uses: actions/labeler@v4.0.3 diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 4d52c68..1ab7bc5 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -1,4 +1,5 @@ -name: Typos +name: Typo Checker + on: pull_request: push: @@ -10,9 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Actions Repository - uses: actions/checkout@v3 - + - uses: actions/checkout@v3 - uses: crate-ci/typos@master id: typos continue-on-error: true