Skip to content

Commit b3496b8

Browse files
committed
Add workflow to update dicm2nii and tweak export_fig
Introduces a new GitHub Actions workflow to automatically sync files from the xiangruili/dicm2nii repository. Also removes a comment from the export_fig workflow configuration for clarity.
1 parent cf1181f commit b3496b8

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update dicm2nii
2+
3+
run-name: ${{ github.actor }} is updating dicm2nii
4+
5+
on: [push]
6+
7+
jobs:
8+
update-dicm2nii:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout gannet repo
12+
uses: actions/checkout@v3
13+
14+
- name: Checkout dicm2nii repo
15+
uses: actions/checkout@v3
16+
with:
17+
repository: xiangruili/dicm2nii
18+
path: dicm2nii_tmp/
19+
20+
- name: Copy files from separate repo to current repo
21+
run: |
22+
rsync -av --exclude '.git' dicm2nii_tmp/ dicm2nii/
23+
rm -rf dicm2nii_tmp/
24+
25+
- name: Commit and push changes
26+
run: |
27+
git config --global user.name "${GITHUB_ACTOR}"
28+
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
29+
git add .
30+
git diff-index --quiet HEAD || git commit -m "Sync with xiangruili/dicm2nii repo"
31+
git push

.github/workflows/update_export_fig.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Checkout export_fig repo
1515
uses: actions/checkout@v3
1616
with:
17-
repository: altmany/export_fig # Replace with the owner/repository name
17+
repository: altmany/export_fig
1818
path: export_fig_tmp/
1919

2020
- name: Copy files from separate repo to current repo

0 commit comments

Comments
 (0)