Skip to content

Commit 6134d99

Browse files
committed
Copy screenshot before archiving to avoid corruption
1 parent 835fdc3 commit 6134d99

File tree

6 files changed

+36
-12
lines changed

6 files changed

+36
-12
lines changed

.github/workflows/simple-program-linux.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ jobs:
4949
false
5050
fi
5151
52+
- name: Prepare screenshot for archiving
53+
run: |
54+
cp screencap.png screenshot-py${{ matrix.python-version }}.png
55+
5256
- name: Archive a screenshot
5357
uses: actions/upload-artifact@v3
5458
with:
55-
name: screenshot
56-
path: screencap.png
59+
name: screenshot-py${{ matrix.python-version }}
60+
path: screenshot-*.png

.github/workflows/simple-program-macos.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ jobs:
4949
false
5050
fi
5151
52+
- name: Prepare screenshot for archiving
53+
run: |
54+
cp screencap.png screenshot-py${{ matrix.python-version }}.png
55+
5256
- name: Archive a screenshot
5357
uses: actions/upload-artifact@v3
5458
with:
55-
name: screenshot
56-
path: screencap.png
59+
name: screenshot-py${{ matrix.python-version }}
60+
path: screenshot-*.png

.github/workflows/simple-program-windows.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ jobs:
5555
throw "Program failed to run, see output above"
5656
}
5757
58+
- name: Prepare screenshot for archiving
59+
run: |
60+
cp screencap.png screenshot-py${{ matrix.python-version }}.png
61+
5862
- name: Archive a screenshot
5963
uses: actions/upload-artifact@v3
6064
with:
61-
name: screenshot
62-
path: screencap.png
65+
name: screenshot-py${{ matrix.python-version }}
66+
path: screenshot-*.png

.github/workflows/system-monitor-linux.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ jobs:
5555
false
5656
fi
5757
58+
- name: Prepare screenshot for archiving
59+
run: |
60+
cp screencap.png screenshot-py${{ matrix.python-version }}-${{ matrix.theme }}.png
61+
5862
- name: Archive a screenshot
5963
uses: actions/upload-artifact@v3
6064
with:
61-
name: screenshot
62-
path: screencap.png
65+
name: screenshot-py${{ matrix.python-version }}-${{ matrix.theme }}
66+
path: screenshot-*.png

.github/workflows/system-monitor-macos.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ jobs:
5555
false
5656
fi
5757
58+
- name: Prepare screenshot for archiving
59+
run: |
60+
cp screencap.png screenshot-py${{ matrix.python-version }}-${{ matrix.theme }}.png
61+
5862
- name: Archive a screenshot
5963
uses: actions/upload-artifact@v3
6064
with:
61-
name: screenshot
62-
path: screencap.png
65+
name: screenshot-py${{ matrix.python-version }}-${{ matrix.theme }}
66+
path: screenshot-*.png

.github/workflows/system-monitor-windows.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@ jobs:
6161
throw "Program failed to run, see output above"
6262
}
6363
64+
- name: Prepare screenshot for archiving
65+
run: |
66+
cp screencap.png screenshot-py${{ matrix.python-version }}-${{ matrix.theme }}.png
67+
6468
- name: Archive a screenshot
6569
uses: actions/upload-artifact@v3
6670
with:
67-
name: screenshot
68-
path: screencap.png
71+
name: screenshot-py${{ matrix.python-version }}-${{ matrix.theme }}
72+
path: screenshot-*.png

0 commit comments

Comments
 (0)