Export unconditionally

This commit is contained in:
Michael Vines 2020-06-14 23:31:10 -07:00
parent 1440ba9a0e
commit f6546d00c2
1 changed files with 0 additions and 4 deletions

View File

@ -25,14 +25,10 @@ declare repo_name=$2
exit 1 exit 1
} }
.travis/affects.sh "$subdir" || exit 0
echo "Exporting $subdir" echo "Exporting $subdir"
set -x set -x
rm -rf .github_export/"$repo_name" rm -rf .github_export/"$repo_name"
git clone https://"$GITHUB_TOKEN"@github.com/solana-labs/"$repo_name" .github_export/"$repo_name" git clone https://"$GITHUB_TOKEN"@github.com/solana-labs/"$repo_name" .github_export/"$repo_name"
# TODO: Try using `--refs $TRAVIS_COMMIT_RANGE` to speed up the filtering
git filter-repo --subdirectory-filter "$subdir" --target .github_export/"$repo_name" git filter-repo --subdirectory-filter "$subdir" --target .github_export/"$repo_name"
git -C .github_export/"$repo_name" push https://"$GITHUB_TOKEN"@github.com/solana-labs/"$repo_name" git -C .github_export/"$repo_name" push https://"$GITHUB_TOKEN"@github.com/solana-labs/"$repo_name"