Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
264

Update a Git submodule git-submodules

Update Git submodules

arguments

  • CF_SUBMODULE_SYNC - if var is set to 'true', the step will perform 'git submodule sync' command
  • CF_SUBMODULE_UPDATE_RECURSIVE - if set to 'true', the step will perform 'git submodule update --init' command with '--recursive' option
  • GITHUB_TOKEN - GitHub Token required to access the repository
    updateSubmodules:
  type: git-submodules
  arguments:
    GITHUB_TOKEN: '${{GITHUB_TOKEN}}'
    CF_SUBMODULE_SYNC: '${{CF_SUBMODULE_SYNC}}'
    CF_SUBMODULE_UPDATE_RECURSIVE: '${{CF_SUBMODULE_UPDATE_RECURSIVE}}'

  
github.com
Francisco Cocozza
Jul 4, 2021