File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 6868 description : ' Multi-line string containing artifact:file:title asset descriptions.'
6969 required : true
7070 type : string
71+ tarball-name :
72+ type : string
73+ required : false
74+ default : ' __pyTooling_upload_artifact__.tar'
7175
7276jobs :
7377 Release :
@@ -251,6 +255,25 @@ jobs:
251255 continue
252256 fi
253257 downloadedArtifacts[$artifact]=1
258+
259+ echo -n " Checking for embedded tarball ... "
260+ if [[ -f "${artifact}/${{ inputs.tarball-name }}" ]]; then
261+ echo -e "${ANSI_LIGHT_GREEN}[FOUND]${ANSI_NOCOLOR}"
262+
263+ pushd "${artifact}" > /dev/null
264+
265+ echo -n " Extracting embedded tarball ... "
266+ tar -xf "${{ inputs.tarball-name }}"
267+ if [[ $? -ne 0 ]]; then
268+ echo -e "${ANSI_LIGHT_RED}[FAILED]${ANSI_NOCOLOR}"
269+ else
270+ echo -e "${ANSI_LIGHT_GREEN}[OK]${ANSI_NOCOLOR}"
271+ fi
272+
273+ popd > /dev/null
274+ else
275+ echo -e "${ANSI_LIGHT_YELLOW}[SKIPPED]${ANSI_NOCOLOR}"
276+ fi
254277 fi
255278
256279 # Check if artifact should be compressed (zip, tgz) or if asset was part of the downloaded artifact.
Original file line number Diff line number Diff line change 3232 echo "Program $(date --utc '+%d.%m.%Y - %H:%M:%S')" > program.py
3333
3434 - name : 📤 Upload artifact
35- uses : pyTooling /upload-artifact@v4
35+ uses : actions /upload-artifact@v4
3636 with :
3737 name : other
3838 path : |
You can’t perform that action at this time.
0 commit comments