diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 6e5fc7d..4c45777 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: Fetch Sponge Versions +name: Build Images # Controls when the action will run. on: @@ -31,5 +31,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push + env: + EVENT_NAME: "${{ github.event_name }}" run: ./build-images.sh diff --git a/build-images.sh b/build-images.sh index dce4b0a..f393fcb 100755 --- a/build-images.sh +++ b/build-images.sh @@ -43,7 +43,7 @@ build_images() { done } -if ./fetch-versions.sh +if ./fetch-versions.sh || [ "${EVENT_NAME:-}" != "schedule" ] then build_images latest build_images recommended