定期更新 #18762
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 定期更新 | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| schedule: | |
| - cron: "0 * * * *" | |
| jobs: | |
| excavate: | |
| name: 执行更新 | |
| runs-on: windows-latest | |
| steps: | |
| - name: 更新时区 | |
| shell: pwsh | |
| run: | | |
| Set-TimeZone -Id "China Standard Time" | |
| - name: 更新本仓库 | |
| uses: actions/checkout@main | |
| with: | |
| fetch-depth: 1 | |
| - name: 更新 Main 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "ScoopInstaller/Main" | |
| fetch-depth: 1 | |
| path: "Main" | |
| - name: 更新 Extras 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "ScoopInstaller/Extras" | |
| fetch-depth: 1 | |
| path: "Extras" | |
| - name: 更新 Versions 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "ScoopInstaller/Versions" | |
| fetch-depth: 1 | |
| path: "Versions" | |
| - name: 更新 scoop-nirsoft 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "kodybrown/scoop-nirsoft" | |
| fetch-depth: 1 | |
| path: "scoop-nirsoft" | |
| - name: 更新 PHP 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "ScoopInstaller/PHP" | |
| fetch-depth: 1 | |
| path: "PHP" | |
| - name: 更新 nerd-fonts 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "matthewjberger/scoop-nerd-fonts" | |
| fetch-depth: 1 | |
| path: "scoop-nerd-fonts" | |
| - name: 更新 Non-portable 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "ScoopInstaller/Nonportable" | |
| fetch-depth: 1 | |
| path: "Nonportable" | |
| - name: 更新 Java 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "ScoopInstaller/Java" | |
| fetch-depth: 1 | |
| path: "Java" | |
| - name: 更新 scoop-games 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "Calinou/scoop-games" | |
| fetch-depth: 1 | |
| path: "scoop-games" | |
| - name: 更新 sysinternals 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "niheaven/scoop-sysinternals" | |
| fetch-depth: 1 | |
| path: "scoop-sysinternals" | |
| - name: 更新 dorado 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "chawyehsu/dorado" | |
| fetch-depth: 1 | |
| path: "dorado" | |
| - name: 更新 Scoop-Gaming 仓库 | |
| uses: actions/checkout@main | |
| with: | |
| repository: "starise/Scoop-Gaming" | |
| fetch-depth: 1 | |
| path: "Scoop-Gaming" | |
| - name: 处理 buckets | |
| shell: pwsh | |
| run: | | |
| .\update.ps1 | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git config --global i18n.logoutputencoding utf-8 | |
| git config --global gui.encoding utf-8 | |
| git config --global i18n.commit.encoding utf-8 | |
| git add --all | |
| git commit -m "自动更新:$(Get-Date -Format "yyyy-MM-dd HH:mm:ss")" | |
| git push -f origin master | |
| - name: 删除旧 Actions | |
| uses: Mattraks/delete-workflow-runs@main | |
| with: | |
| token: ${{ github.token }} | |
| repository: ${{ github.repository }} | |
| retain_days: 0 | |
| keep_minimum_runs: 2 |