diff --git a/incubating/github-action-executor/step.yaml b/incubating/github-action-executor/step.yaml deleted file mode 100644 index ad88e4e5e..000000000 --- a/incubating/github-action-executor/step.yaml +++ /dev/null @@ -1,117 +0,0 @@ -version: '1.0' -kind: step-type -metadata: - version: 0.2.2 - name: github-action-executor - description: Execute github action - maintainers: - - name: Pavel Kostohrys - icon: - type: feather - name: zap - color: '#000000' - background: '#ffffff' - sourceURL: 'https://github.com/codefresh-io/cf-step-builder' - sources: - - 'https://github.com/codefresh-io/cf-step-builder' - isPublic: true - categories: - - utility - examples: - - description: Execute github action created with Dockerfile - workflow: - runtime-executor: - title: Notify slack channel - type: github-action-executor - arguments: - url: 'https://github.com/marketplace/actions/slack-notify' - env: - SLACK_WEBHOOK: '${{SLACK_WEBHOOK}}' - SLACK_CHANNEL: general - SLACK_MESSAGE: Hello from codefresh! - SLACK_TITLE: Custom Title - SLACK_USERNAME: rtCamp - official: false - stage: incubating - latest: true -spec: - arguments: |- - { - "definitions": {}, - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "additionalProperties": true, - "required": [ - "url" - ], - "properties": { - "url": { - "type": "string", - "description": "github action marketplace url" - }, - "args": { - "type": "string", - "description": "github action args" - }, - "env": { - "type": "object", - "description": "action environment variables" - }, - "debug": { - "type": "boolean", - "description": "show debug logs" - }, - "registry": { - "type": "string", - "description": "registry to push a builded image" - }, - "registry_repo": { - "type": "string", - "description": "registry org name" - }, - "cache": { - "type": "boolean", - "description": "enable/disable cache" - } - } - } - stepsTemplate: | - github_action_export_variables: - title: Exporting required variables - image: codefresh/github-action-converter - environment: - [[ if .Arguments.envs ]]- ENVS="[[ .Arguments.envs ]]"[[ end ]] - [[ if .Arguments.url ]]- REPO_URL=[[ .Arguments.url ]][[ end ]] - [[ if .Arguments.debug ]]- LOG_LEVEL=debug[[ end ]] - commands: - - /app/interface/cli/index.js export-variables - [[ if .Arguments.debug ]] - github_action_print: - image: alpine - title: envs - commands: - - printenv - [[ end ]] - github_action_clone: - type: git-clone - repo: ${{GA_GIT_REPO}} - github_action_build: - type: build - workingDirectory: ${{github_action_clone}} - repository: ${{GA_GIT_REPO_NAME}} - disablePush: true - dockerfile: - path: Dockerfile - tag: latest - github_action_step: - image: ${{github_action_build}} - volumes: - - ./${{CF_REPO_NAME}}:/github/workspace/${{CF_REPO_NAME}} - - ./:/github/workflow - [[ if .Arguments.args ]] - cmd: [[ .Arguments.args ]] - [[ end ]] - - delimiters: - left: '[[' - right: ']]'