Skip to content

Commit

Permalink
TEMP
Browse files Browse the repository at this point in the history
Signed-off-by: Gichan Jang <[email protected]>
  • Loading branch information
gichan-jang committed Nov 27, 2024
1 parent 203b880 commit edca999
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/yocto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,21 @@ 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
- name: Check fetch depth
run : echo "fetch depth, ${{ steps.fetch_depth.outputs.depth }}"
- uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event.pull_request.commits }}
fetch-depth: steps.fetch_depth.outputs.depth
- name: check the number of commits
run: echo ${{ github.event.pull_request.commits }}
- name: Check if rebuild required
uses: ./.github/actions/check-rebuild
with:
Expand Down

0 comments on commit edca999

Please sign in to comment.