diff --git a/.github/notice-board.yml b/.github/notice-board.yml new file mode 100644 index 000000000..19036482e --- /dev/null +++ b/.github/notice-board.yml @@ -0,0 +1,9 @@ +preview: + # - desc: + # zh: + # en: + # icon: + # name: + # url: + +releases: diff --git a/.github/workflows/notice-board.yml b/.github/workflows/notice-board.yml new file mode 100644 index 000000000..28a508dac --- /dev/null +++ b/.github/workflows/notice-board.yml @@ -0,0 +1,50 @@ +name: Update Notice Board + +on: + push: + branches: + - config + paths: + - .github/notice-board.yml + +jobs: + update-notice-board: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v5.0.0 + with: + fetch-depth: 0 + ref: ${{ github.ref }} + + - name: Configure SSH + uses: photostructure/git-ssh-signing-action@v1 + with: + ssh-signing-key: ${{ secrets.SSH_PRIVATE_KEY }} + git-user-name: ${{ github.actor }} + git-user-email: ${{ secrets.EMAIL }} + + - uses: actions/setup-python@main + with: + python-version: 3.x + pip-install: PyYAML requests + + - name: Run script + run: | + filename="update_notice_board.py" + raw_url=$(curl -s https://api.github.com/gists/${{ secrets.GIST_ID }} | jq -r .files.\"$filename\".raw_url) + curl -o /tmp/$filename -s $raw_url + python3 /tmp/$filename README.md + python3 /tmp/$filename README-en.md + + - name: Create Commit and Push + run: | + git add README.md README-en.md + if git diff --cached --quiet; then + echo "没有文件变更,跳过提交" + else + git commit --quiet "📝 docs(readme): update notice board" + fi + git push diff --git a/.gitignore b/.gitignore index fea531d3a..b7d0f25f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.bat +/*.py /*.sh *.zip diff --git a/README-en.md b/README-en.md index 0a041a9de..2c76db219 100644 --- a/README-en.md +++ b/README-en.md @@ -18,6 +18,10 @@ *** + + + + ## Disclaimer ### 1. Image Container Adaptation diff --git a/README.md b/README.md index 29437472a..efb347d6d 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,10 @@ *** + + + + ## 免责声明 ### 1. 镜像容器适配 diff --git a/renovate.json b/renovate.json index c9b2c0532..72f138525 100644 --- a/renovate.json +++ b/renovate.json @@ -41,6 +41,10 @@ ], "groupName": "immich" }, + { + "matchPackageNames": ["anheyu/anheyu-backend", "anheyu/pro"], + "groupName": "Anheyu Blog" + }, { "matchPackageNames": ["budtmo/docker-android"], "matchCurrentVersion": "emulator_9.0_*",