mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
19 lines
572 B
Bash
Executable File
19 lines
572 B
Bash
Executable File
#!/bin/sh
|
|
if ! test -f travis.yml ; then
|
|
if test -f .travis.yml ; then
|
|
cp .travis.yml travis.yml
|
|
fi
|
|
fi
|
|
if test -f .travis.yml ; then
|
|
git rm .travis.yml
|
|
fi
|
|
if test -f .github/workflows/run_tests.yml ; then
|
|
rm -f .github/workflows/tmp0.yml .github/workflows/tmp1.yml
|
|
cp .github/workflows/run_tests.yml .github/workflows/tmp0.yml
|
|
cat .github/workflows/tmp0.yml \
|
|
| sed -e 's/on: \[pull_request,[ ]*push\]/on: [pull_request]/' \
|
|
| cat > .github/workflows/tmp1.yml
|
|
rm -f .github/workflows/run_tests.yml
|
|
mv .github/workflows/tmp1.yml .github/workflows/run_tests.yml
|
|
fi
|