<commit_before>build_template_app:
  image: espressif/esp32-ci-env

  variables:
    SDK_PATH: "$CI_PROJECT_DIR"
    IDF_PATH: "$CI_PROJECT_DIR"

  script:
    - git clone https://github.com/espressif/esp-idf-template.git
    - cd esp-idf-template
    - make all<commit_msg>gitlab-ci: push master to GitHub master on success<commit_after>stages:
  - build
#  - test
  - deploy


build_template_app:
  stage: build
  image: espressif/esp32-ci-env

  variables:
    SDK_PATH: "$CI_PROJECT_DIR"
    IDF_PATH: "$CI_PROJECT_DIR"
    GIT_STRATEGY: clone

  script:
    - git clone https://github.com/espressif/esp-idf-template.git
    - cd esp-idf-template
    - make all

push_master_to_github:
  stage: deploy
  only:
    - master
  when: on_success
  image: espressif/esp32-ci-env
  variables:
    GIT_STRATEGY: clone
  script:
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh
    - echo -n $GH_PUSH_KEY >> ~/.ssh/id_rsa_base64
    - base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
    - chmod 600 ~/.ssh/id_rsa
    - echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
    - git remote add github <EMAIL>:espressif/esp-idf.git
    - git push github HEAD:master
{'fraction_non_alphanumeric': 0.12197159565580618, 'fraction_numerical': 0.015037593984962405, 'mean_word_length': 2.7672955974842766, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6459434', 'n_tokens_mistral': 498, 'n_tokens_neox': 463, 'n_words': 92}