OCV Git cache #916
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OCV Git cache | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/OCV-Git-Cache.yaml' | |
schedule: | |
- cron: '0 0 * * *' | |
concurrency: | |
group: OCV-Git-Cache-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Update: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [opencv-cn-lin-x86-64, opencv-cn-lin-arm64, opencv-cn-win, opencv-cn-mac-arm64, opencv-cn-mac-x86-64] | |
steps: | |
- name: Update Git cache | |
timeout-minutes: 60 | |
run: | | |
for repository in opencv opencv_contrib opencv_extra | |
do | |
cd $GIT_CACHE_PATH/$repository.git | |
git fetch --tags --force --progress -- https://github.com/opencv/$repository.git +refs/pull/*:refs/remotes/origin/pr/* | |
done |