diff --git a/.github/workflows/check-duplicate.yml b/.github/workflows/check-duplicate.yml new file mode 100644 index 0000000..2c24ef8 --- /dev/null +++ b/.github/workflows/check-duplicate.yml @@ -0,0 +1,34 @@ +name: Check Duplicate + +on: + workflow_dispatch: + pull_request: + +permissions: + pull-requests: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }} + cancel-in-progress: true + +jobs: + check-duplicate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check for duplicates + shell: bash + run: | + FILE='extensions/quarto-extensions.csv' + COLUMN=2 + duplicates=$(awk -F, -v col=$COLUMN '{print $col}' $FILE | sort | uniq -d) + if [[ -n "$duplicates" ]]; then + while read -r duplicate; do + grep -n "$duplicate" $FILE | while read -r line ; do + lineNumber=$(echo $line | cut -d: -f1) + echo "::error file=$FILE,line=$lineNumber,endLine=$lineNumber,title=Duplicate Entry::Duplicate value '$duplicate' found" + done + done <<< "$duplicates" + exit 1 + fi + diff --git a/extensions/quarto-extensions.csv b/extensions/quarto-extensions.csv index f3aeafd..e264e2a 100644 --- a/extensions/quarto-extensions.csv +++ b/extensions/quarto-extensions.csv @@ -116,22 +116,17 @@ formats,davidcarayon/quarto-inrae-extension formats,fredguth/tufte-quarto formats,wjschne/apaquarto shortcodes-filters,shafayetShafee/code-fullscreen -shortcodes-filters,shafayetShafee/hide-comment -shortcodes-filters,leovan/quarto-pseudocode -shortcodes-filters,shafayetShafee/material-icons +shortcodes-filters,leovan/quarto-pseudocodematerial-icons shortcodes-filters,dialoa/first-line-indent shortcodes-filters,shafayetShafee/reveal-header -shortcodes-filters,shafayetShafee/black-formatter shortcodes-filters,dialoa/recursive-citeproc shortcodes-filters,ute/search-replace -shortcodes-filters,shafayetShafee/interactive-sql shortcodes-filters,ttalVlatt/Quarto-Docx-Horizontal-Rule shortcodes-filters,clearmatics/qreacto shortcodes-filters,data-intuitive/quarto-d2 shortcodes-filters,kdheepak/quarto-svgbob shortcodes-filters,andrewheiss/quarto-wordcount formats,coatless/quarto-illinois -formats,grantmcdermott/quarto-revealjs-clean shortcodes-filters,produnis/quarto-timer shortcodes-filters,dragonstyle/share-post shortcodes-filters,bcdavasconcelos/citetools