-
Notifications
You must be signed in to change notification settings - Fork 86
31 lines (29 loc) · 1.14 KB
/
detect_changes.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Detect dependency changes
on:
pull_request:
types: [opened, synchronize]
jobs:
check-dependencies-updated:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v1
with:
python-version: '3.9.x'
- name: Install Dependencies
run: |
make installdeps-test
- name: Detect Dependency Changes
id: check
continue-on-error: true
run: |
mkdir /tmp/dependencies_updated_artifacts
export DEPENDENCY_FILE_PATH=/tmp/dependencies_updated_artifacts/current_dependencies.txt
evalml/tests/dependency_update_check/make_deps_diff.sh
diff evalml/tests/dependency_update_check/latest_dependency_versions.txt /tmp/dependencies_updated_artifacts/current_dependencies.txt > /tmp/dependencies_updated_artifacts/diff.txt
- name: Display Dependency Changes
if: steps.check.outcome != 'success'
run: |
echo Displaying dependencies which have changed, with main on the left and the new branch on the right:
cat /tmp/dependencies_updated_artifacts/diff.txt
exit 1