Skip to content

Commit

Permalink
fix: notify of delay-destroy deprication
Browse files Browse the repository at this point in the history
  • Loading branch information
mbruzda-splunk committed May 13, 2024
1 parent 0013770 commit ba14554
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ on:
- "main"
- "develop"

permissions:
contents: write
packages: write
pull-requests: read
statuses: write

jobs:
pre-commit:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# ########################################################################
# Copyright 2021 Splunk Inc.
#
Expand Down Expand Up @@ -80,7 +81,7 @@ outputs:
description: 'Name of workflow triggered'
runs:
using: 'docker'
image: 'docker://ghcr.io/splunk/wfe-test-runner-action/wfe-test-runner-action:v1.6.9'
image: 'Dockerfile'
args:
- ${{ inputs.workflow-tmpl-name }}
- ${{ inputs.workflow-template-ns }}
Expand Down
8 changes: 6 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ else
BRANCH_NAME=${GITHUB_HEAD_REF}
fi

if [[ ${3} ]]
then
echo "::warning title=Delay destroy not supported::Delay destroy is deprecated, please update your reusable workflow version"
fi
WORKFLOW_NAME=`argo submit -v -o json --from wftmpl/${1} -n ${2} -l workflows.argoproj.io/workflow-template=${1} --argo-base-href '' \
-p ci-repository-url="https://github.com/${GITHUB_REPOSITORY}.git" \
-p ci-commit-sha=${BRANCH_NAME} -p delay-destroy=${3} \
-p ci-commit-sha=${BRANCH_NAME} \
-p addon-url="${4}" \
-p job-name=${5} \
-p splunk-version=${6} \
Expand All @@ -46,4 +50,4 @@ echo "After argo submit $?"
echo 'WORKFLOW_NAME:' ${WORKFLOW_NAME}
echo "workflow-name=$(echo $WORKFLOW_NAME)" >> $GITHUB_OUTPUT

argo logs --follow ${WORKFLOW_NAME} -n ${2}
argo logs --follow ${WORKFLOW_NAME} -n ${2}

0 comments on commit ba14554

Please sign in to comment.