Skip to content

Commit

Permalink
Fix create_conda_build_artifacts.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Nov 3, 2023
1 parent a78fc10 commit 593ffa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conda_smithy/templates/create_conda_build_artifacts.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# INPUTS (environment variables that need to be set before calling this script):
#
# CI (azure/github_actions/UNSET)
# flow_run_id (unique identifier for the CI job run)
# CI_RUN_ID (unique identifier for the CI job run)
# FEEDSTOCK_NAME
# CONFIG (build matrix configuration string)
# SHORT_CONFIG (uniquely-shortened configuration string)
Expand Down Expand Up @@ -47,14 +47,14 @@ if [ -z ${FEEDSTOCK_NAME} ]; then
fi

# Set a unique ID for the artifact(s), specialized for this particular job run
ARTIFACT_UNIQUE_ID="${flow_run_id}_${CONFIG}"
ARTIFACT_UNIQUE_ID="${CI_RUN_ID}_${CONFIG}"
if [[ {% raw %}${#ARTIFACT_UNIQUE_ID}{% endraw %} -gt 80 ]]; then
ARTIFACT_UNIQUE_ID="${flow_run_id}_${SHORT_CONFIG}"
ARTIFACT_UNIQUE_ID="${CI_RUN_ID}_${SHORT_CONFIG}"
fi
echo "ARTIFACT_UNIQUE_ID: $ARTIFACT_UNIQUE_ID"

# Set a descriptive ID for the archive(s), specialized for this particular job run
ARCHIVE_UNIQUE_ID="${flow_run_id}_${CONFIG}"
ARCHIVE_UNIQUE_ID="${CI_RUN_ID}_${CONFIG}"

# Make the build artifact zip
if [[ ! -z "$BLD_ARTIFACT_PREFIX" ]]; then
Expand Down

0 comments on commit 593ffa1

Please sign in to comment.