From 7cf1e27d7d25ab7fecfa2972f6b0bdc0e97e58d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=89=B2=E3=81=AE=E7=89=A9=E8=AF=AD?= <42845041+Whitestorys@users.noreply.github.com> Date: Wed, 21 Dec 2022 20:37:33 +0800 Subject: [PATCH] Update build-openwrt.yml --- .github/workflows/build-openwrt.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-openwrt.yml b/.github/workflows/build-openwrt.yml index c6ef6b92c2..be93a09af1 100644 --- a/.github/workflows/build-openwrt.yml +++ b/.github/workflows/build-openwrt.yml @@ -18,7 +18,11 @@ on: description: 'SSH connection to Actions' required: false default: 'false' - +# schedule: +# - cron: 10 */12 * * * +# watch: +# types: started + env: REPO_URL: https://github.com/coolsnowwolf/lede REPO_BRANCH: master @@ -35,8 +39,9 @@ env: jobs: build: - runs-on: ubuntu-20.04 - + runs-on: ubuntu-latest +# if: github.event.repository.owner.id == github.event.sender.id + steps: - name: Checkout uses: actions/checkout@main @@ -47,7 +52,7 @@ jobs: run: | sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc sudo -E apt-get -qq update - sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-2004) + sudo -E apt-get -qq install $(curl -fsSL git.io/JURWx) sudo -E apt-get -qq autoremove --purge sudo -E apt-get -qq clean sudo timedatectl set-timezone "$TZ" @@ -174,17 +179,17 @@ jobs: body_path: release.txt files: ${{ env.FIRMWARE }}/* - - name: Delete workflow runs + - name: Remove old Workflow uses: GitRML/delete-workflow-runs@main with: - retain_days: 1 + retain_days: 30 keep_minimum_runs: 3 - name: Remove old Releases uses: dev-drprasad/delete-older-releases@v0.1.0 if: env.UPLOAD_RELEASE == 'true' && !cancelled() with: - keep_latest: 3 + keep_latest: 14 delete_tags: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}