Skip to content

Commit

Permalink
[Yocto] Fix yocto daily build
Browse files Browse the repository at this point in the history
Fix fetcer failure of yocto daily build.
Get fetch depth according to the action event.

Signed-off-by: Gichan Jang <[email protected]>
  • Loading branch information
gichan-jang committed Nov 27, 2024
1 parent 7172718 commit eec0b85
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/yocto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ jobs:
name: Build with Yocto / meta-neural-network on Ubuntu
runs-on: ubuntu-22.04
steps:
- name: get fetch depth
id: fetch_depth
run: |
if ${{ github.event_name == 'pull_request' }}; then
echo "depth=${{ github.event.pull_request.commits }}" >> $GITHUB_OUTPUT
else
echo "depth=1" >> $GITHUB_OUTPUT
fi
- uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event.pull_request.commits }}
fetch-depth: steps.fetch_depth.outputs.depth
- name: Check if rebuild required
uses: ./.github/actions/check-rebuild
with:
Expand Down

0 comments on commit eec0b85

Please sign in to comment.