From 36ddcf209c875cc097b769179502f50fc42e44e6 Mon Sep 17 00:00:00 2001 From: Daniel Bast <2790401+dbast@users.noreply.github.com> Date: Fri, 12 Apr 2024 15:48:09 +0200 Subject: [PATCH] Switch to branch trigger builds (instead of cron), increase rentention --- .github/workflows/build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b464ad9e..a0649dc7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,9 +5,10 @@ on: # Build on changes to this workflow files in PRs to test proposed changes paths: - '.github/workflows/build.yml' - schedule: - # Build daily at 5:30 UTC - - cron: '30 5 * * *' + push: + branches: + - main + - dev workflow_dispatch: inputs: os-ref: @@ -15,6 +16,9 @@ on: default: main required: true +# Increment this number as part of a PR to trigger an image build for the PR +# trigger = 0 + jobs: build: name: build @@ -114,7 +118,8 @@ jobs: name: seedsigner_os_images path: "seedsigner-os/images/*.img" if-no-files-found: error - retention-days: 7 + # maximum 90 days retention + retention-days: 90 sha256sum: name: calculate sha256sum @@ -148,4 +153,5 @@ jobs: name: seedsigner_os_images path: "images/*.sha256" if-no-files-found: error - retention-days: 7 + # maximum 90 days retention + retention-days: 90