Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow pbtxt submissions #71

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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