Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/update-license-year.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Update LICENSE Year

on:
schedule:
# January 1st, 06:00 UTC = midnight CST (UTC-6)
- cron: "0 6 1 1 *"
workflow_dispatch:

permissions:
contents: write

jobs:
update-year:
runs-on: ubuntu-latest
steps:
Comment on lines +13 to +15
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Add SKIP_ENV_VALIDATION to this workflow job.

This workflow file matches the repository rule but does not set SKIP_ENV_VALIDATION=true.

Suggested patch
 jobs:
   update-year:
     runs-on: ubuntu-latest
+    env:
+      SKIP_ENV_VALIDATION: "true"
     steps:

As per coding guidelines, {.github/workflows/*.yml,Dockerfile,docker-entrypoint.sh}: Use SKIP_ENV_VALIDATION=true to bypass t3-env during CI and Docker build when runtime secrets aren't available.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
update-year:
runs-on: ubuntu-latest
steps:
update-year:
runs-on: ubuntu-latest
env:
SKIP_ENV_VALIDATION: "true"
steps:
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/update-license-year.yml around lines 13 - 15, The
update-year job (update-year) in the workflow must set SKIP_ENV_VALIDATION=true
so t3-env is bypassed during CI; add an env entry SKIP_ENV_VALIDATION: "true"
(or SKIP_ENV_VALIDATION=true) to the update-year job's environment (e.g., under
the steps or job-level env for update-year) so the job will skip runtime secret
validation during the workflow run.

- name: Checkout
uses: actions/checkout@v4
with:
ref: main

- name: Update copyright year
run: |
CURRENT_YEAR=$(date +%Y)
sed -i "s/Copyright (c) [0-9]\{4\}/Copyright (c) $CURRENT_YEAR/" LICENSE

- name: Commit and push if changed
run: |
CURRENT_YEAR=$(date +%Y)
git config user.name "MrDemonWolf, Inc."
git config user.email "admin@mrdemonwolf.com"
git diff --quiet LICENSE && echo "No changes needed" && exit 0
git add LICENSE
git commit -m "chore: update LICENSE copyright year to $CURRENT_YEAR"
git push
Loading