File tree Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version : 2
7
+ updates :
8
+ - package-ecosystem : " maven"
9
+ directory : " /dependabot"
10
+ schedule :
11
+ interval : " weekly"
12
+ - package-ecosystem : " github-actions"
13
+ directory : " /"
14
+ schedule :
15
+ interval : " weekly"
Original file line number Diff line number Diff line change 42
42
uses : DeLaGuardo/setup-clojure@master
43
43
with :
44
44
lein : latest
45
+ - name : Setup Babashka
46
+ run : bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)
47
+ - name : Check dependabot is in sync with project.clj
48
+ run : ./script/check-dependabot
45
49
- name : Run tests
46
50
run : lein do clean, all test, all check
47
51
deploy :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Check that project.clj is in sync with the committed dependabot pom.xml.
3
+
4
+ set -e
5
+
6
+ ./script/sync-dependabot
7
+ set +e
8
+ if git diff --ignore-all-space --exit-code dependabot/pom.xml ; then
9
+ echo ' project.clj and dependabot/pom.xml are in sync.'
10
+ exit 0
11
+ else
12
+ echo
13
+ echo ' project.clj and dependabot/pom.xml are out of sync! Please run ./script/sync-dependabot locally and commit the results.'
14
+ echo ' If this is a PR from dependabot, you must manually update the version in project.clj'
15
+ exit 1
16
+ fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ SHA=$( git rev-parse HEAD)
6
+
7
+ lein pom
8
+ mkdir -p dependabot
9
+ mv pom.xml dependabot
10
+ # lein pom uses the origin git remote to add metadata. remove for reproducibility.
11
+ bb ' (spit "dependabot/pom.xml" (-> "dependabot/pom.xml" slurp xml/parse-str (update :content (partial remove #(some-> % :tag name #{"scm" "url"}))) xml/emit-str))'
You can’t perform that action at this time.
0 commit comments