markmikkelsen is updating dependencies #11
This file contains hidden or 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: Update dependencies - bids-matlab, dicm2nii, etc. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| run-name: ${{ github.actor }} is updating dependencies | |
| on: | |
| schedule: | |
| - cron: 0 0 * * 1 # Every monday | |
| workflow_dispatch: | |
| jobs: | |
| update-dependencies: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout gannet repo | |
| uses: actions/checkout@v5 | |
| - name: Checkout bids-matlab repo | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: bids-standard/bids-matlab | |
| path: bids-matlab_tmp/ | |
| - name: Checkout dicm2nii repo | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: xiangruili/dicm2nii | |
| path: dicm2nii_tmp/ | |
| - name: Checkout export_fig repo | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: altmany/export_fig | |
| path: export_fig_tmp/ | |
| - name: Copy files from separate repos to current repo | |
| run: | | |
| rsync -av --exclude '.git' bids-matlab_tmp/ bids-matlab/ | |
| rsync -av --exclude '.git' dicm2nii_tmp/ dicm2nii/ | |
| rsync -av --exclude '.git' --exclude '.ignore' export_fig_tmp/ export_fig/ | |
| rm -rf bids-matlab_tmp/ dicm2nii_tmp/ export_fig_tmp/ | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| commit-message: Sync with dependencies repos | |
| assignees: markmikkelsen | |
| base: main | |
| delete-branch: true | |
| title: '[BOT] Update dependencies - bids-matlab, dicm2nii, etc.' | |
| body: Done by a [GitHub Action](https://github.com/markmikkelsen/Gannet/blob/main/.github/workflows/update_dependencies.yml) |