kind: Workflow
metadata:
  annotations:
    argo-connector/keywords: test,test2
    argo-connector/license: https://spdx.org/licenses/CC-BY-SA-4.0
    argo-connector/notify: 'true'
    argo-connector/submitterId1: 0009-0009-0544-5117
    argo-connector/submitterName1: Daniel Bauer
    workflows.argoproj.io/description: A test dataset from an argo workflow submitted
      via the Frontend as RO-Crate
    workflows.argoproj.io/pod-name-format: v2
    workflows.argoproj.io/title: Test Dataset
spec:
  arguments:
    parameters:
    - name: text
      value: test parameter
  artifactGC:
    forceFinalizerRemoval: true
  entrypoint: store-file
  onExit: exit-handler
  podGC:
    strategy: OnPodCompletion
  templates:
  - inputs: {}
    metadata: {}
    name: store-file
    outputs:
      artifacts:
      - name: testfile
        path: /testfile.txt
    script:
      command:
      - bin/sh
      image: alpine
      name: ''
      resources: {}
      source: 'echo "creating test file..."

        echo "{{ workflow.parameters.text }}" > /testfile.txt

        echo "done"

        '
  - inputs: {}
    metadata: {}
    name: exit-handler
    outputs: {}
    steps:
    - - arguments: {}
        inline:
          http:
            headers:
            - name: Authorization
              valueFrom:
                secretKeyRef:
                  key: token
                  name: argo-connector-auth-secret
            insecureSkipVerify: true
            successCondition: response.statusCode == 202
            timeoutSeconds: 10
            url: https://217.71.193.143/connector/notify/{{ workflow.namespace }}/{{workflow.name
              }}
          inputs: {}
          metadata: {}
          outputs: {}
          retryStrategy:
            backoff:
              duration: 1m
              factor: '2'
              maxDuration: 30m
            limit: '10'
        name: notify-argo-connector
        when: '{{ workflow.status }} == Succeeded && {{ workflow.annotations.argo-connector/notify
          }} == true'
