mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
only commit from upstream on change to avoid error-ing, add TODO for JSON linting
This commit is contained in:
parent
191dffbcbe
commit
b235af1ebd
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
# Adds an Entity Framework Core migration to a pull request that changes data in data/*.json
|
||||
|
||||
# TODO: sort/lint JSON and push as a part of this bot work
|
||||
# TODO: if data/* or server/src/FilterLists.Data.Migrations/* change in origin/master, re-trigger this Pipeline.
|
||||
trigger: none
|
||||
|
||||
|
|
@ -77,7 +78,9 @@ steps:
|
|||
echo "Data changes conflict with upstream master. Aborting..."
|
||||
exit 1
|
||||
fi
|
||||
git commit -m "merge upstream data"
|
||||
if [[ $(git status -uno --porcelain) ]] ; then
|
||||
git commit -m "merge upstream data"
|
||||
fi
|
||||
displayName: merge upstream data
|
||||
condition: and(ne(variables['abortIfJustMigrated.aborted'], 'true'), succeeded())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue