Skip to content

Commit

Permalink
Update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lubnar committed Oct 24, 2024
1 parent b4173c6 commit 8bf4ded
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-onyx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
uses: actions/cache@v3
with:
path: |
onyx
key: ${{ runner.os }}-onyx
onyx/bin
key: ${{ runner.os }}-golang-${{ hashFiles('onyx/bin') }}
restore-keys: |
${{ runner.os }}-onyx
${{ runner.os }}-golang-
- name: Check if folder has changed
id: check-changes
run: |
diff_output=$(git diff HEAD HEAD~1 onyx/)
diff_output=$(git diff HEAD HEAD~1 -- onyx/)
# Check if the output is empty
if [ -n "$diff_output" ]; then
echo "There are changes."
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Show cache contents
run: |
ls -ltr onyx
- if: ${{ steps.check-changes.outputs.changed == 'true' }}
- if: ${{ steps.check-changes.outputs.changed == 'true' || steps.go-cache.outputs.cache-hit != 'true'}}
name: Build
working-directory: onyx
run: |
Expand Down

0 comments on commit 8bf4ded

Please sign in to comment.