mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Support embedded tarballs for nightly release's artifacts.
This commit is contained in:
23
.github/workflows/NightlyRelease.yml
vendored
23
.github/workflows/NightlyRelease.yml
vendored
@@ -68,6 +68,10 @@ on:
|
|||||||
description: 'Multi-line string containing artifact:file:title asset descriptions.'
|
description: 'Multi-line string containing artifact:file:title asset descriptions.'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
tarball-name:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: '__pyTooling_upload_artifact__.tar'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Release:
|
Release:
|
||||||
@@ -251,6 +255,25 @@ jobs:
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
downloadedArtifacts[$artifact]=1
|
downloadedArtifacts[$artifact]=1
|
||||||
|
|
||||||
|
echo -n " Checking for embedded tarball ... "
|
||||||
|
if [[ -f "${artifact}/${{ inputs.tarball-name }}" ]]; then
|
||||||
|
echo -e "${ANSI_LIGHT_GREEN}[FOUND]${ANSI_NOCOLOR}"
|
||||||
|
|
||||||
|
pushd "${artifact}" > /dev/null
|
||||||
|
|
||||||
|
echo -n " Extracting embedded tarball ... "
|
||||||
|
tar -xf "${{ inputs.tarball-name }}"
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo -e "${ANSI_LIGHT_RED}[FAILED]${ANSI_NOCOLOR}"
|
||||||
|
else
|
||||||
|
echo -e "${ANSI_LIGHT_GREEN}[OK]${ANSI_NOCOLOR}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
popd > /dev/null
|
||||||
|
else
|
||||||
|
echo -e "${ANSI_LIGHT_YELLOW}[SKIPPED]${ANSI_NOCOLOR}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if artifact should be compressed (zip, tgz) or if asset was part of the downloaded artifact.
|
# Check if artifact should be compressed (zip, tgz) or if asset was part of the downloaded artifact.
|
||||||
|
|||||||
2
.github/workflows/_Checking_Nightly.yml
vendored
2
.github/workflows/_Checking_Nightly.yml
vendored
@@ -32,7 +32,7 @@ jobs:
|
|||||||
echo "Program $(date --utc '+%d.%m.%Y - %H:%M:%S')" > program.py
|
echo "Program $(date --utc '+%d.%m.%Y - %H:%M:%S')" > program.py
|
||||||
|
|
||||||
- name: 📤 Upload artifact
|
- name: 📤 Upload artifact
|
||||||
uses: pyTooling/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: other
|
name: other
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
Reference in New Issue
Block a user