diff --git a/.github/workflows/update_copyright_year.yml b/.github/workflows/update_copyright_year.yml new file mode 100644 index 000000000000..18f951e1f775 --- /dev/null +++ b/.github/workflows/update_copyright_year.yml @@ -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 }} \ No newline at end of file diff --git a/docs/source/en/api/models/skyreels_v2_transformer_3d.md b/docs/source/en/api/models/skyreels_v2_transformer_3d.md index c1c8c2c7bcce..4cd5edd5b4cb 100644 --- a/docs/source/en/api/models/skyreels_v2_transformer_3d.md +++ b/docs/source/en/api/models/skyreels_v2_transformer_3d.md @@ -1,4 +1,4 @@ -