Nightly build

This commit is contained in:
github-actions[bot]
2025-12-15 23:02:12 +00:00
commit ee42e06fcc
33 changed files with 492718 additions and 0 deletions

22
.github/workflows/closeIssues.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}

71
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,71 @@
name: Release Shadowrocket Rules
on:
schedule:
# 每日8时开始
- cron: '0 23 * * *'
push:
branches:
- build
paths-ignore:
- '**.md'
- 'LICENSE'
pull_request_target:
branches:
- build
paths-ignore:
- '**.md'
- 'LICENSE'
workflow_dispatch:
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: build
path: build
- uses: actions/checkout@v4
with:
ref: release
path: release
- name: Install requirements
run: pip3 install -r build/requirements.txt
- name: Build Rules
run: |
cd build || exit 1
./factory/auto_build.sh
- name: Move files
run: |
cd build || exit 1
cp *.conf ../release/
cp -r figure ../release/
cp LICENSE ../release/
cp readme.md ../release/
- name: Update lazy rules
run: |
cd release || exit 1
rm lazy.conf lazy_group.conf
curl -O https://raw.githubusercontent.com/LOWERTOP/Shadowrocket/main/lazy.conf
curl -O https://raw.githubusercontent.com/LOWERTOP/Shadowrocket/main/lazy_group.conf
- name: Remove commits
run: |
cd release || exit 1
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git checkout --orphan latest_branch
git add -A
git commit -am "Nightly build"
git branch -D release
git branch -m release
git push -f origin release