Skip to content

Commit

Permalink
Update build-openwrt.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Whitestorys authored Dec 21, 2022
1 parent d1bf728 commit 7cf1e27
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build-openwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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/[email protected]
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
with:
keep_latest: 3
keep_latest: 14
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7cf1e27

Please sign in to comment.