Skip to content

Commit

Permalink
Revert "Add missing checkout"
Browse files Browse the repository at this point in the history
This reverts commit 72f36fd.
  • Loading branch information
mauromorales committed Apr 16, 2024
1 parent 72f36fd commit 12f93b9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/reusable-nvidia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,21 @@ jobs:
needs: base
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
files_yaml: |
nvidia:
- 'images/Dockerfile.nvidia'
- name: Calculate if rest of steps should run
id: run_steps
run: |
if [[ "${{ steps.changed-files.outputs.nvidia_any_changed }}" == "true" || "${{ github.ref }}" == "refs/tags/master" || "${{ github.ref }}" == "refs/tags/v"* ]]; then
echo "run_steps=true" >> $GITHUB_OUTPUT
else
echo "run_steps=false" >> $GITHUB_OUTPUT
fi
- name: build
uses: ./.github/workflows/reusable-docker-arm-build.yaml
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || startsWith(github.ref, 'refs/tags/v') || needs.base.outputs.changed-files.outputs.nvidia_any_changed == 'true' }}
Expand Down

0 comments on commit 12f93b9

Please sign in to comment.