diff --git a/.github/workflows/readme-sync.yml b/.github/workflows/readme-sync.yml index 6d4bd5ba8..3465906ce 100644 --- a/.github/workflows/readme-sync.yml +++ b/.github/workflows/readme-sync.yml @@ -1,6 +1,9 @@ name: Synchronize Readme # Copied from: https://github.com/snyk/vscode-extension/blob/e34b720733956dbd1b185f0ff3b16a6003ad3bbb/.github/workflows/readme-sync.yaml on: + push: + branches: + - fix/IDE-479-upgrate-detekt workflow_dispatch: schedule: - cron: '0 12 * * 1-5' # Mon-Fri at 12 @@ -29,6 +32,13 @@ jobs: -E 's|(\{%.*%\})||g' \ ./$DESTINATION_REPOSITORY/$FILE_TO_COMMIT + # Add markers back to the README.md + sed -i '/^# JetBrains plugins$/a\ + ' ./$DESTINATION_REPOSITORY/$FILE_TO_COMMIT + sed -i '/^## Supported languages/i\ + ' ./$DESTINATION_REPOSITORY/$FILE_TO_COMMIT + + if [[ $(git -C ./$DESTINATION_REPOSITORY status --porcelain) ]]; then echo "Documentation changes detected" cd ./$DESTINATION_REPOSITORY