Skip to content

Commit

Permalink
chore: add markers back to the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Catalina Oyaneder committed Jul 8, 2024
1 parent 2de3b72 commit 744a17b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/readme-sync.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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\
<!-- Plugin description start -->' ./$DESTINATION_REPOSITORY/$FILE_TO_COMMIT
sed -i '/^## Supported languages/i\
<!-- Plugin description end -->' ./$DESTINATION_REPOSITORY/$FILE_TO_COMMIT
if [[ $(git -C ./$DESTINATION_REPOSITORY status --porcelain) ]]; then
echo "Documentation changes detected"
cd ./$DESTINATION_REPOSITORY
Expand Down

0 comments on commit 744a17b

Please sign in to comment.