Skip to content

Commit

Permalink
Update .github/actions/should-build-image/action.yml
Browse files Browse the repository at this point in the history
Co-authored-by: Emilien Escalle <neilime@users.noreply.github.com>
  • Loading branch information
fredleger and neilime authored Jul 22, 2023
1 parent ee330ac commit dc60609
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/actions/should-build-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,23 @@ inputs:
runs:
using: "composite"
steps:
- name: Checkout
- if: ${{ github.event_name == 'push' }}
uses: actions/checkout@v3
with:
fetch-depth: 2
- if: ${{ github.event_name != 'push' }}
uses: actions/checkout@v3
with:
fetch-depth: 0

- id: changed-files
uses: tj-actions/changed-files@v35.7.12
uses: tj-actions/changed-files@v37.4.0
with:
base_sha: ${{ inputs.base-sha }}
since_last_remote_commit: ${{ github.event_name == 'push' }}
files: |
./${{ inputs.build-context }}/*
.github/actions/should-build-image/*
${{ inputs.build-context }}/
.github/actions/should-build-image/
.github/workflows/__shared-ci.yml
.github/workflows/__shared-get-available-images-matrix.yml
Expand Down

0 comments on commit dc60609

Please sign in to comment.