Skip to content

Commit

Permalink
#7 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 17, 2024
1 parent f015781 commit 78c7813
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export GLI_DEBUG=true
cd "${GITHUB_WORKSPACE-/w}"

fb=$(realpath "${INPUT_FACTBASE}")
pages=$(realpath "${INPUT_PAGES}")

cd /judges-action

Expand Down Expand Up @@ -66,9 +67,9 @@ if [ -z "${INPUT_PAGES}" ]; then
echo "are going to be generated by the plugin"
exit 1
fi
mkdir -p "${INPUT_PAGES}"
mkdir -p "${pages}"
for f in yaml xml json; do
target="${fb%.*}.${f}"
bundle exec judges print --format "${f}" "${fb}" "${target}"
mv "${target}" "${INPUT_PAGES}"
mv "${target}" "${pages}"
done

0 comments on commit 78c7813

Please sign in to comment.