From 22cef3f50ba4cb8e06499827fa9134818950d551 Mon Sep 17 00:00:00 2001 From: Kairsten Fay Date: Tue, 15 Sep 2020 18:17:03 -0700 Subject: [PATCH] Revert "add clean-tsv workflow" This reverts commit 2c8ab3754337e06896a783b6f7abe712ea1c251e. We decided that build maintainers want more control over automated corrections to the manually maintained TSV files. So, let them run the cleaning script locally instead of on GitHub actions. --- .github/workflows/clean-tsv.yml | 45 --------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/clean-tsv.yml diff --git a/.github/workflows/clean-tsv.yml b/.github/workflows/clean-tsv.yml deleted file mode 100644 index e9bfa9e6..00000000 --- a/.github/workflows/clean-tsv.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Tab correcting and sorting on manually maintained tsv files - -on: - push: - branches: - - clean-metadata - tags-ignore: - - '**' - paths: - - source-data/location_hierarchy.tsv - - source-data/gisaid_annotations.tsv - -jobs: - clean-metadata: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: | - PATH="$HOME/.local/bin:$PATH" - python3 -m pip install --upgrade pip setuptools - python3 -m pip install pipenv - - name: clean location hierarchies - run: | - pipenv sync - pipenv run ./bin/clean-tsv source-data/location_hierarchy.tsv source-data/location_hierarchy.tsv --n-cols 4 - - name: clean annotations - run: | - pipenv sync - grep -v "paper\|title" source-data/gisaid_annotations.tsv > nonpaper_annotations.tsv - pipenv run ./bin/clean-tsv nonpaper_annotations.tsv nonpaper_annotations.tsv --n-cols 4 --no-header - grep "paper\|title" source-data/gisaid_annotations.tsv > paper_annotations.tsv - pipenv run ./bin/clean-tsv paper_annotations.tsv paper_annotations.tsv --n-cols 4 --sort-col 1 --no-header - cat nonpaper_annotations.tsv > source-data/gisaid_annotations.tsv - cat paper_annotations.tsv >> source-data/gisaid_annotations.tsv - - name: commit cleaned tsvs - run: | - git config --global user.name "${{ github.actor }}" - git config --global user.email "${{ github.actor }}@users.noreply.github.com" - git diff --quiet || git commit -am "Automated commit: clean manually maintained tsvs" - git push