Skip to content

Commit

Permalink
Allow pbtxt submissions (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
skearnes authored Mar 3, 2021
1 parent d78c85c commit b707ad3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ jobs:
echo "Found $(wc -l < changed_files.txt | tr -d ' ') changed files"
cat changed_files.txt
# Use `|| (( $? == 1 ))` in case no lines match (exit code is nonzero).
grep -E "\.pb(.gz)?$" changed_files.txt > changed_pb_files.txt || (( $? == 1 ))
grep -E "\.pb(txt)?(.gz)?$" changed_files.txt > changed_data_files.txt || (( $? == 1 ))
# Use LOCAL_NUM_CHANGED since ::set-env values are not available immediately.
LOCAL_NUM_CHANGED="$(wc -l < changed_pb_files.txt | tr -d ' ')"
LOCAL_NUM_CHANGED="$(wc -l < changed_data_files.txt | tr -d ' ')"
echo "NUM_CHANGED_FILES=${LOCAL_NUM_CHANGED}" >> $GITHUB_ENV
echo "Found ${LOCAL_NUM_CHANGED} changed pb files"
cat changed_pb_files.txt
echo "Found ${LOCAL_NUM_CHANGED} changed dataset files"
cat changed_data_files.txt
- name: Install miniconda
uses: s-weigand/setup-conda@v1
with:
Expand All @@ -144,7 +144,7 @@ jobs:
run: |
cd "${GITHUB_WORKSPACE}"
python ./ord-schema/ord_schema/scripts/process_dataset.py \
--input_file=changed_pb_files.txt \
--input_file=changed_data_files.txt \
--base=upstream/main
if: >-
env.NUM_CHANGED_FILES != '0' &&
Expand All @@ -154,7 +154,7 @@ jobs:
run: |
cd "${GITHUB_WORKSPACE}"
python ./ord-schema/ord_schema/scripts/process_dataset.py \
--input_file=changed_pb_files.txt \
--input_file=changed_data_files.txt \
--update \
--cleanup \
--base=upstream/main \
Expand Down

0 comments on commit b707ad3

Please sign in to comment.