Skip to content

Commit

Permalink
Support embedded tarballs for nightly release's artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Dec 8, 2024
1 parent f084e02 commit 3e50c2e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/NightlyRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ on:
description: 'Multi-line string containing artifact:file:title asset descriptions.'
required: true
type: string
tarball-name:
type: string
required: false
default: '__pyTooling_upload_artifact__.tar'

jobs:
Release:
Expand Down Expand Up @@ -251,6 +255,25 @@ jobs:
continue
fi
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
# Check if artifact should be compressed (zip, tgz) or if asset was part of the downloaded artifact.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_Checking_Nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
echo "Program $(date --utc '+%d.%m.%Y - %H:%M:%S')" > program.py
- name: 📤 Upload artifact
uses: pyTooling/upload-artifact@v4
uses: actions/upload-artifact@v4
with:
name: other
path: |
Expand Down

0 comments on commit 3e50c2e

Please sign in to comment.