markmikkelsen is updating dicm2nii #1
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 dicm2nii | |
| run-name: ${{ github.actor }} is updating dicm2nii | |
| on: [push] | |
| jobs: | |
| update-dicm2nii: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout gannet repo | |
| uses: actions/checkout@v3 | |
| - name: Checkout dicm2nii repo | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: xiangruili/dicm2nii | |
| path: dicm2nii_tmp/ | |
| - name: Copy files from separate repo to current repo | |
| run: | | |
| rsync -av --exclude '.git' dicm2nii_tmp/ dicm2nii/ | |
| rm -rf dicm2nii_tmp/ | |
| - name: Commit and push changes | |
| run: | | |
| git config --global user.name "${GITHUB_ACTOR}" | |
| git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
| git add . | |
| git diff-index --quiet HEAD || git commit -m "Sync with xiangruili/dicm2nii repo" | |
| git push |