Skip to content
Open
Show file tree
Hide file tree
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
59 changes: 59 additions & 0 deletions .github/workflows/update_copyright_year.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Update Copyright Year

on:
schedule:
- cron: "0 0 1 1 *"
workflow_dispatch:
push:
branches:
- test-copyright

permissions:
contents: write
pull-requests: write

jobs:
update-year-pr:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Update copyright year
run: python utils/update_copyright_year.py

- name: Check for changes
id: check_changes
run: |
if git diff --quiet; then
echo "has_changes=false" >> $GITHUB_OUTPUT
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi

- name: Create PR
if: steps.check_changes.outputs.has_changes == 'true'
run: |
YEAR=$(date +'%Y')
BRANCH="update-copyright-$YEAR"

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

git checkout -b "$BRANCH"
git add .
git commit -m "chore: update copyright year to $YEAR"
git push --set-upstream origin "$BRANCH"

gh pr create \
--title "chore: update copyright year to $YEAR" \
--body "Automated update of copyright year to $YEAR." \
--head "$BRANCH" \
--base main \
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion docs/source/en/api/models/skyreels_v2_transformer_3d.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Copyright 2024 The HuggingFace Team. All rights reserved.
<!-- Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/api/pipelines/controlnetxs.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/api/pipelines/controlnetxs_sdxl.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/api/pipelines/ledits_pp.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/optimization/speed-memory-optims.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Copyright 2024 The HuggingFace Team. All rights reserved.
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion docs/source/ko/using-diffusers/diffedit.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion docs/source/ko/using-diffusers/kandinsky.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion docs/source/ko/using-diffusers/sdxl_turbo.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion docs/source/ko/using-diffusers/shap-e.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion docs/source/ko/using-diffusers/svd.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
<!--Copyright 2025 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion examples/community/adaptive_mask_inpainting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 The HuggingFace Team. All rights reserved.
# Copyright 2025 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion examples/community/ddim_noise_comparative_analysis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 The HuggingFace Team. All rights reserved.
# Copyright 2025 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading