-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ease dependency management via Renovate (#50)
- Loading branch information
1 parent
95610d5
commit 15f869c
Showing
11 changed files
with
124 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:best-practices" | ||
], | ||
"packageRules": [ | ||
{ | ||
"matchFileNames": [ | ||
".github/**/*.yml", | ||
".tool-versions" | ||
], | ||
"groupName": "dev tools" | ||
}, | ||
{ | ||
"matchFileNames": [ | ||
"rebar.config" | ||
], | ||
"groupName": "rebar.config deps" | ||
}, | ||
{ | ||
"matchPackagePrefixes": [ | ||
"minimum_otp_vsn" | ||
], | ||
"enabled": false | ||
} | ||
], | ||
"customManagers": [ | ||
{ | ||
"description": "Match versions (per datasource and depName) in .github/**/*.yml", | ||
"customType": "regex", | ||
"fileMatch": [ | ||
".github/.*/.*\\.yml" | ||
], | ||
"matchStrings": [ | ||
"# renovate datasource: (?<datasource>[^,]+), depName: (?<depName>[^\\n]+)\\n[^\\d]+(?<currentValue>v?\\d+(\\.\\d+)?(\\.\\d+)?)" | ||
] | ||
}, | ||
{ | ||
"description": "Match versions in rebar.config", | ||
"customType": "regex", | ||
"fileMatch": [ | ||
"rebar.config" | ||
], | ||
"datasourceTemplate": "hex", | ||
"matchStrings": [ | ||
"\\{(?<depName>[^,]+), \"(?<currentValue>\\d+(\\.\\d+)?(\\.\\d+)?)\"\\}" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: Update dependencies | ||
|
||
"on": [push, workflow_dispatch] | ||
|
||
jobs: | ||
update: | ||
name: Update rebar.lock | ||
if: "${{ github.ref == 'refs/heads/renovate/rebar.config-deps' }}" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- uses: erlef/[email protected] | ||
with: | ||
version-type: strict | ||
version-file: .tool-versions | ||
|
||
- run: | | ||
rebar3 upgrade --all | ||
if ! git diff --exit-code >/dev/null; then | ||
# there's stuff to push | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git add rebar.lock | ||
git commit -m "[automation] update \`rebar.lock\` after Renovate" | ||
git push | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
erlang 25.3.2.5 | ||
erlang 25.3.2 | ||
rebar 3.22.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ extends: default | |
rules: | ||
line-length: | ||
max: 100 | ||
comments: | ||
min-spaces-from-content: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{"1.2.0", | ||
[{<<"ssl_verify_fun">>,{pkg,<<"ssl_verify_fun">>,<<"1.1.7">>},1}, | ||
{<<"tls_certificate_check">>, | ||
{pkg,<<"tls_certificate_check">>,<<"1.22.1">>}, | ||
{pkg,<<"tls_certificate_check">>,<<"1.22.0">>}, | ||
0}]}. | ||
[ | ||
{pkg_hash,[ | ||
{<<"ssl_verify_fun">>, <<"354C321CF377240C7B8716899E182CE4890C5938111A1296ADD3EC74CF1715DF">>}, | ||
{<<"tls_certificate_check">>, <<"0F450CC1568A67A65CE5E15DF53C53F9A098C3DA081C5F126199A72505858DC1">>}]}, | ||
{<<"tls_certificate_check">>, <<"6C2E1310C0C8132584229F0B9BB8744A9BFC3F910375C1A4D76B8CC44BB8D893">>}]}, | ||
{pkg_hash_ext,[ | ||
{<<"ssl_verify_fun">>, <<"FE4C190E8F37401D30167C8C405EDA19469F34577987C76DDE613E838BBC67F8">>}, | ||
{<<"tls_certificate_check">>, <<"3092BE0BABDC0E14C2E900542351E066C0FA5A9CF4B3597559AD1E67F07938C0">>}]} | ||
{<<"tls_certificate_check">>, <<"E94F2129866EA7E8879AF462BADCB21F9BEF87159F05AE7840DA5A1986F5F6BB">>}]} | ||
]. |
This file was deleted.
Oops, something went wrong.