diff --git a/action.yml b/action.yml index b9fd28f8..322be453 100644 --- a/action.yml +++ b/action.yml @@ -70,13 +70,13 @@ runs: DOCASSEMBLECLI_VERSION: ${{ inputs.DOCASSEMBLECLI_VERSION }} shell: bash run: | - log="💡 ALK0023 INFO: Set environment variables" + log="💡 ALK0023 INFO: Set environment variables and create artifacts folder" # Human-readable date/time: https://www.shell-tips.com/linux/how-to-format-date-and-time-in-linux-macos-and-bash/#how-to-format-a-date-in-bash timestamp="$(date +'%Y-%m-%d at %Hh%Mm%Ss' -u)" artifact_folder="alkiln-${timestamp}UTC" debug_path="${artifact_folder}/debug_log.txt" - mkdir -p "$artifact_path" + mkdir -p "$artifact_folder" echo "$log" >> "$debug_path" # Action-specific vars diff --git a/action_for_github_server/action.yml b/action_for_github_server/action.yml index 92e25eee..0ca33e11 100644 --- a/action_for_github_server/action.yml +++ b/action_for_github_server/action.yml @@ -48,21 +48,19 @@ runs: - uses: actions/checkout@v4 - shell: bash - if: ${{ always() && env.OUTPUT_DOCKER == 'true' }} - name: "💡 ALK0018 INFO: Create artifact paths with date and time" run: | log="💡 ALK0018 INFO: Get path names with date and time" timestamp="$(date +'%Y-%m-%d at %Hh%Mm%Ss' -u)" debug_dir="/tmp" debug_path="$debug_dir/alkiln_docker_logs-${timestamp}UTC.txt" - artifact_path="alkiln_github_server-${timestamp}UTC" + artifact_folder="alkiln_github_server-${timestamp}UTC" mkdir -p "$debug_dir" - mkdir -p "$artifact_path" + mkdir -p "$artifact_folder" echo -e "$log" >> "$debug_path" echo "DEBUG_PATH=$debug_path" >> $GITHUB_ENV - echo "GITHUB_SERVER_ARTIFACT_NAME=$artifact_path" >> $GITHUB_ENV + echo "GITHUB_SERVER_ARTIFACT_NAME=$artifact_folder" >> $GITHUB_ENV - shell: bash env: diff --git a/tests/log_codes/log_code_expected_instances.txt b/tests/log_codes/log_code_expected_instances.txt index c88732e9..9e2724a9 100644 --- a/tests/log_codes/log_code_expected_instances.txt +++ b/tests/log_codes/log_code_expected_instances.txt @@ -26,7 +26,7 @@ ALK0014:1 ALK0015:1 ALK0016:1 ALK0017:1 -ALK0018:2 +ALK0018:1 ALK0019:2 ALK0020:1 ALK0021:1