Skip to content

'--remove-image' is overriding error code of action #31

@davidferlay

Description

@davidferlay

Observed

  • Return code of action is lost when using --remove-image
➜ launchrctl platform:sync dev --username "XXX" --password "XXX" --vaultpass "XXX" --override xxxxxx; echo $?
Image "platform-actions-sync:latest" exists locally                  
OVERRIDDEN_COMPARISON_REF has been set: xxxxxx
Repository name: ski-platform
Last bump commit identified: xxxxxx
Attempting to download artifact: https://repositories.skilld.cloud/repository/ski-platform-artifacts/ski-platform-xxxxxx-plasma-src.tar.gz
ERROR: Artifact was not found
1

➜ launchrctl platform:sync dev --username "XXX" --password "XXX" --vaultpass "XXX" --override xxxxxx --remove-image; echo $?
Image "platform-actions-sync:latest" exists locally
OVERRIDDEN_COMPARISON_REF has been set: xxxxxx
Repository name: ski-platform
Last bump commit identified: xxxxxx
Attempting to download artifact: https://repositories.skilld.cloud/repository/ski-platform-artifacts/ski-platform-xxxxxx-plasma-src.tar.gz
ERROR: Artifact was not found
Image "platform-actions-sync:latest" was successfully removed
0

Expected

  • Return code should depend on action return code, regardless of usage of --remove-image
➜ launchrctl platform:sync dev --username "XXX" --password "XXX" --vaultpass "XXX" --override xxxxxx --remove-image; echo $?
Image "platform-actions-sync:latest" exists locally
OVERRIDDEN_COMPARISON_REF has been set: xxxxxx
Repository name: ski-platform
Last bump commit identified: xxxxxx
Attempting to download artifact: https://repositories.skilld.cloud/repository/ski-platform-artifacts/ski-platform-xxxxxx-plasma-src.tar.gz
ERROR: Artifact was not found
Image "platform-actions-sync:latest" was successfully removed
1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions