Skip to content

Commit

Permalink
Only rebuild the image when the code hasn't changed
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Jun 20, 2024
1 parent f41934a commit e6a1195
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
name: 'Format'
runs-on: ubuntu-22.04
timeout-minutes: 30
if: github.event_name != 'schedule'

steps:
- name: 'Checkout code'
Expand All @@ -70,7 +71,7 @@ jobs:
name: 'Push image'
runs-on: ubuntu-22.04
timeout-minutes: 30
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && !failure() && !cancelled()
outputs:
image: ${{ steps.image.outputs.image }}
needs:
Expand Down

0 comments on commit e6a1195

Please sign in to comment.