Skip to content

Commit

Permalink
Niceties
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarshall committed Mar 28, 2022
1 parent 07533d2 commit 0eed387
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/pr-pdfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:

- name: Identify changed LaTeX documents
env:
pr_number: ${{ github.event.number }}
base_sha: ${{ github.event.pull_request.base.sha }}
head_sha: ${{ github.event.pull_request.head.sha }}
run: |
Expand All @@ -28,15 +29,29 @@ jobs:
echo bar
git merge-base $base_sha $head_sha
echo baz
changed=$(git diff-tree --name-only --merge-base $base_sha $head_sha -- '*.tex')
test -n "$changed" && make $(ls -1 $changed | sed 's,^,new/,;s/tex$/ver/')
changed=$(git diff-tree --name-only --merge-base $base_sha $head_sha -- '*.tex' | tr '\n' ' ')
#test -n "$changed" && make $(ls -1 $changed | sed 's,^,new/,;s/tex$/ver/')
echo "changed: {{{$changed}}}"
echo "changed=$changed" >> $GITHUB_ENV
echo "pdfs=$(ls -1 $changed | sed 's,^,new/,;s,tex$,pdf,')" >> $GITHUB_ENV
echo "pdfs=$(ls -1 $changed | sed 's,^,new/,;s,tex$,pdf,' | tr '\n' ' ')" >> $GITHUB_ENV
echo "diffs=$(ls -1 $changed | sed 's,^,diff/,;s,tex$,pdf,' | tr '\n' ' ')" >> $GITHUB_ENV
echo done
echo "pr_number=$pr_number" > environ.txt
echo "pr_base_sha=$base_sha" >> environ.txt
echo "pr_head_sha=$head_sha" >> environ.txt
- name: Run LaTeX
uses: ./.github/actions/texlive
if: ${{ env.changed }}
with:
run: make ${{ env.pdfs }}
run: make ${{ env.pdfs }} ${{ env.diffs }}

- uses: actions/upload-artifact@v3
with:
name: pdf
retention-days: 1
if-no-files-found: ignore
path: |
environ.txt
new/*.pdf
diff/*.pdf
1 change: 1 addition & 0 deletions VCFv4.1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

\section{The VCF specification}
VCF is a text file format (most likely stored in a compressed manner). It contains meta-information lines, a header line, and then data lines each containing information about a position in the genome.
I am the walrus.
The format also has the ability to contain genotype information on samples for each position.
\subsection{An example}
\scriptsize
Expand Down

0 comments on commit 0eed387

Please sign in to comment.