Skip to content

Commit

Permalink
build if not scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Oct 4, 2023
1 parent 28acfca commit f7dd4b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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

2 changes: 1 addition & 1 deletion build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7dd4b4

Please sign in to comment.