mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Update CI configs to v0.4.10
Update lint scripts and CI configs.
This commit is contained in:
@@ -11,12 +11,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Unshallow the repo, this check doesn't work with this enabled
|
||||
# https://github.com/travis-ci/travis-ci/issues/3412
|
||||
if [ -f $(git rev-parse --git-dir)/shallow ]; then
|
||||
git fetch --unshallow || true
|
||||
fi
|
||||
|
||||
SCRIPT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
|
||||
|
||||
if [ -f ${SCRIPT_PATH}/.ci.conf ]
|
||||
|
||||
@@ -58,13 +58,7 @@ if [ "$#" -eq 1 ]; then
|
||||
fi
|
||||
lint_commit_message "$(sed -n '/# Please enter the commit message for your changes. Lines starting/q;p' "$1")"
|
||||
else
|
||||
# TRAVIS_COMMIT_RANGE is empty for initial branch commit
|
||||
if [[ "${TRAVIS_COMMIT_RANGE}" != *"..."* ]]; then
|
||||
parent=$(git log -n 1 --format="%P" ${TRAVIS_COMMIT_RANGE})
|
||||
TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE}...$parent"
|
||||
fi
|
||||
|
||||
for commit in $(git rev-list ${TRAVIS_COMMIT_RANGE}); do
|
||||
for commit in $(git rev-list --no-merges origin/master..); do
|
||||
lint_commit_message "$(git log --format="%B" -n 1 $commit)"
|
||||
done
|
||||
fi
|
||||
|
||||
@@ -11,6 +11,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Commit Message
|
||||
run: .github/lint-commit-message.sh
|
||||
|
||||
Reference in New Issue
Block a user