ci: refactor workflow names

This commit is contained in:
sgoudham 2023-07-26 01:13:54 +01:00
parent c3fb1cae08
commit 4c32951b4c
No known key found for this signature in database
GPG Key ID: 44E818FD5457EEA4
6 changed files with 19 additions and 14 deletions

View File

@ -1,4 +1,4 @@
name: Required Files Checker name: File Checker
on: on:
workflow_dispatch: workflow_dispatch:
@ -6,14 +6,15 @@ on:
jobs: jobs:
file-checker: file-checker:
name: Check for Missing Files name: Required Files Included
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Check - name: Check Files
run: | run: |
MISSING_FILES=0 MISSING_FILES=0
echo "# Missing Files Found 😠" >> $GITHUB_STEP_SUMMARY echo "# Missing Files Found 😢" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY
required_files=( required_files=(

View File

@ -7,6 +7,7 @@ on:
jobs: jobs:
prettier: prettier:
name: Format Code
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -15,8 +16,7 @@ jobs:
token: ${{ github.ref == 'refs/heads/main' && secrets.USERSTYLES_TOKEN || github.token }} token: ${{ github.ref == 'refs/heads/main' && secrets.USERSTYLES_TOKEN || github.token }}
# Make sure the actual branch is checked out when running on pull requests # Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }} ref: ${{ github.head_ref }}
- name: Run Prettier
- name: Run prettier
uses: creyD/prettier_action@v4.3 uses: creyD/prettier_action@v4.3
with: with:
commit_options: "--author 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'" commit_options: "--author 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'"

View File

@ -1,4 +1,4 @@
name: Generate Health Files name: File Generator
on: on:
workflow_dispatch: workflow_dispatch:
@ -12,7 +12,8 @@ env:
jobs: jobs:
generate-health-files: generate-health-files:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Re-generate README, CODEOWNERS, pr-labeler.yml & issue-labeler.yml name: Generate Health Files
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -30,7 +31,7 @@ jobs:
key: ${{ hashFiles('src/generate/deno.lock') }} key: ${{ hashFiles('src/generate/deno.lock') }}
path: ${{ env.DENO_DIR }} path: ${{ env.DENO_DIR }}
- name: Update README, CODEOWNERS, pr-labeler.yml & issue-labeler.yml - name: Update Health Files
working-directory: src/generate working-directory: src/generate
run: ./generate.ts run: ./generate.ts

View File

@ -7,7 +7,9 @@ on:
jobs: jobs:
triage: triage:
name: Add Labels
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: github/issue-labeler@v3.1 - uses: github/issue-labeler@v3.1
with: with:

View File

@ -5,7 +5,9 @@ on:
jobs: jobs:
triage: triage:
name: Add Labels
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/labeler@v4.0.3 - uses: actions/labeler@v4.0.3

View File

@ -1,4 +1,5 @@
name: Typos name: Typo Checker
on: on:
pull_request: pull_request:
push: push:
@ -10,9 +11,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Actions Repository - uses: actions/checkout@v3
uses: actions/checkout@v3
- uses: crate-ci/typos@master - uses: crate-ci/typos@master
id: typos id: typos
continue-on-error: true continue-on-error: true