diff --git a/action.yaml b/action.yaml index ea7a67f..4409650 100644 --- a/action.yaml +++ b/action.yaml @@ -34,6 +34,7 @@ runs: shell: bash run: | export INPUTS_BRANCH="${{ inputs.branch }}" + export INPUTS_PATH="${{ inputs.path }}" ${GITHUB_ACTION_PATH}/scripts/pull.sh - name: Push Coverage diff --git a/scripts/pull.sh b/scripts/pull.sh index 91df363..26499c5 100755 --- a/scripts/pull.sh +++ b/scripts/pull.sh @@ -13,4 +13,7 @@ else git checkout --orphan "${INPUTS_BRANCH}" rm .git/index git clean -fdx + touch "${INPUTS_PATH}/head/head.html" + touch "${INPUTS_PATH}/head/head.txt" + touch "${INPUTS_PATH}/head/head.out" fi diff --git a/scripts/push.sh b/scripts/push.sh index d81e1ab..a3d1338 100755 --- a/scripts/push.sh +++ b/scripts/push.sh @@ -36,11 +36,11 @@ done # if we are on the main branch, copy files to main.* -# if [ "${REF_NAME}" = "main" ]; then +if [ "${REF_NAME}" = "main" ]; then cp "revisions/${REVISION}.html" "${cover_dir}/head/head.html" cp "revisions/${REVISION}.txt" "${cover_dir}/head/head.txt" cp "revisions/${REVISION}.out" "${cover_dir}/head/head.out" -# fi +fi # copy assets