Skip to content

Commit

Permalink
changing github sha to branch names
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Khatsuriya committed Sep 14, 2021
1 parent 43508f8 commit f4e8c13
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ########################################################################
env | grep ARGO
set -o xtrace

if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]
then
BRANCH_NAME=${GITHUB_REF}
else
BRANCH_NAME=${GITHUB_HEAD_REF}
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="[email protected]:${GITHUB_REPOSITORY}.git" \
-p ci-commit-sha=${GITHUB_SHA} -p delay-destroy=${3} \
-p ci-commit-sha=${BRANCH_NAME} -p delay-destroy=${3} \
-p addon-url="${4}" \
-p job-name=${5} \
-p splunk-version=${6} \
Expand Down

0 comments on commit f4e8c13

Please sign in to comment.