From cc78bf6dabf3a805752d139c03835de8dfe627d2 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Fri, 30 Jan 2026 14:37:21 -0500 Subject: [PATCH] ci(workflows): standardize GitHub Actions workflows - Build: always run on push to main (remove paths filter) - Contributors: run at 1:00 AM EST, output HTML format - PR Title Lint: standardize to only lint PR titles --- .github/workflows/build.yml | 4 ---- .github/workflows/commit-lint.yml | 28 +--------------------------- .github/workflows/contributors.yml | 4 +++- 3 files changed, 4 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 635376d..a534de2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,10 +11,6 @@ on: push: branches: - main - paths: - - 'src/**' - - '*.slnx' - - '.github/workflows/build.yml' jobs: build: diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index e765427..db3deee 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -1,4 +1,4 @@ -name: Lint Commit Messages +name: Lint PR Title on: pull_request: @@ -31,29 +31,3 @@ jobs: run: | echo "Validating PR title: $PR_TITLE" echo "$PR_TITLE" | npx commitlint --verbose - - commitlint: - name: Lint Commit Messages - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Fetch all history for all branches and tags - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install commitlint - run: | - npm install --save-dev @commitlint/cli@18.4.3 @commitlint/config-conventional@18.4.3 - - - name: Validate PR commits - run: | - # Get the base branch (usually main) - BASE_SHA=$(git merge-base origin/${{ github.base_ref }} HEAD) - - # Lint all commits in the PR - npx commitlint --from $BASE_SHA --to HEAD --verbose diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 6c91a77..daf757f 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -2,10 +2,12 @@ name: Update Contributors on: schedule: - - cron: '0 0 * * *' + - cron: '0 6 * * *' workflow_dispatch: jobs: contributors: uses: CodingWithCalvin/.github/.github/workflows/contributors.yml@main + with: + output-format: html secrets: inherit