From 3b8e30e6c3c2ae8ceecd230b5b05f18bbd521d92 Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Sun, 26 May 2024 17:58:43 -0400 Subject: [PATCH] update github actions --- .../{deploy.yml => deploy-website.yml} | 9 ++++----- ...tic-pr-linter.yml => lint-pull-request.yml} | 18 ++++++++++++------ .../workflows/{lock.yml => lock-issues-pr.yml} | 0 .../{jekyll-test.yml => test-website-a11y.yml} | 5 ++--- 4 files changed, 18 insertions(+), 14 deletions(-) rename .github/workflows/{deploy.yml => deploy-website.yml} (81%) rename .github/workflows/{semantic-pr-linter.yml => lint-pull-request.yml} (85%) rename .github/workflows/{lock.yml => lock-issues-pr.yml} (100%) rename .github/workflows/{jekyll-test.yml => test-website-a11y.yml} (72%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy-website.yml similarity index 81% rename from .github/workflows/deploy.yml rename to .github/workflows/deploy-website.yml index a0f445c..74ebf4a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy-website.yml @@ -16,7 +16,7 @@ jobs: BUNDLE_RETRY: 3 environment: - name: website + name: facioquo.com steps: @@ -26,9 +26,8 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.3' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - cache-version: 1 # Increment this number if you need to re-download cached gems + ruby-version: "3.3" + bundler-cache: true - name: Define tag id: tag @@ -60,4 +59,4 @@ jobs: accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }} directory: _site - wranglerVersion: 'latest' + wranglerVersion: "latest" diff --git a/.github/workflows/semantic-pr-linter.yml b/.github/workflows/lint-pull-request.yml similarity index 85% rename from .github/workflows/semantic-pr-linter.yml rename to .github/workflows/lint-pull-request.yml index a4113f5..8fb6295 100644 --- a/.github/workflows/semantic-pr-linter.yml +++ b/.github/workflows/lint-pull-request.yml @@ -1,4 +1,4 @@ -name: "Lint PR" +name: "Pull request" on: pull_request_target: @@ -12,7 +12,7 @@ permissions: jobs: main: - name: validate PR title + name: lint PR title runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v5 @@ -39,7 +39,7 @@ jobs: # event triggers in your workflow. ignoreLabels: | bot - ignore-semantic-pull-request + dependencies - uses: marocchino/sticky-pull-request-comment@v2 # When the previous steps fails, the workflow would stop. By adding this @@ -57,9 +57,15 @@ jobs: #### Pull request title naming convention Our PR title name taxonomy is `type: Subject`, where **type** is typically - *feat*, *fix*, or *chore*, and **subject** is a phrase (proper noun) that starts with a capitalized letter. - The *chore* type usually has a subject that starts with an action verb like *Add* or *Update*. - Examples: `feat: Admin portal login`, `fix: Divide by zero bug in SMA`, and `chore: Update user docs`. + *feat*, *fix*, or *chore*, and **subject** is a phrase (proper noun) that starts + with a capitalized letter. The *chore* type usually has a subject that starts + with an action verb like *Add* or *Update*. Examples: + + - _feat: Admin portal login_ + - _fix: Divide by zero in X calculation_ + - _chore: Update packages_ + - _docs: Improve setup guidance_ + See the [Conventional Commits specification](https://www.conventionalcommits.org) for more information. # Delete a previous comment when the issue has been resolved diff --git a/.github/workflows/lock.yml b/.github/workflows/lock-issues-pr.yml similarity index 100% rename from .github/workflows/lock.yml rename to .github/workflows/lock-issues-pr.yml diff --git a/.github/workflows/jekyll-test.yml b/.github/workflows/test-website-a11y.yml similarity index 72% rename from .github/workflows/jekyll-test.yml rename to .github/workflows/test-website-a11y.yml index e6d1176..a7ab76e 100644 --- a/.github/workflows/jekyll-test.yml +++ b/.github/workflows/test-website-a11y.yml @@ -21,9 +21,8 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '3.2' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - cache-version: 1 # Increment this number if you need to re-download cached gems + ruby-version: "3.3" + bundler-cache: true - name: Build site run: bundle exec jekyll build