Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script to check latest version regularly.
- Loading branch information
1 parent
2fd33b0
commit 9f9ed70
Showing
7 changed files
with
81 additions
and
4 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,16 @@ | ||
name: Check manual dependencies | ||
|
||
on: | ||
schedule: | ||
- cron: "25 3 * * 2" # weekly: tuesdays at 3:25 | ||
workflow_dispatch: # Allow manual run | ||
|
||
jobs: | ||
check-dependencies: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check versions of manually managed dependencies | ||
run: | | ||
./release/100-check-latest-versions.sh |
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,3 +1,4 @@ | ||
tmp | ||
generated.Dockerfile | ||
.cache | ||
new.versions.txt |
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,24 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
SAVED="release/versions.txt" | ||
NEW="release/new.versions.txt" | ||
|
||
echo "Checking $SAVED against latest versions..." | ||
|
||
# Ths scripts checks the latest versions of the dependencies against what is checked in at versions.log. | ||
# See RELEASE.md | ||
|
||
OUT="$NEW" ./release/101-save-latest-versions.sh | ||
|
||
if diff "$SAVED" "$NEW"; then | ||
echo "✅ No new dependency versions." | ||
else | ||
echo "❗❗ New dependency versions found ❗❗" | ||
# diff is automatically printed in the if statement | ||
echo "Please do the following: | ||
1. Run ./release/101-save-latest-versions.sh | ||
2. Commit new versions | ||
3. Create a new release" | ||
exit 1 | ||
fi |
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,11 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# See RELEASE.md | ||
|
||
source release/0-get-latest-dependencies-versions.sh | ||
|
||
OUT="${OUT:-"release/versions.txt"}" | ||
|
||
echo "$ALL_VERSIONS" | sed '/^$/d' >"$OUT" | ||
echo "Saved latest versions into $OUT." |
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,4 @@ | ||
Protobuf 21.5 | ||
go 1.18 | ||
Goreleaser v1.11.2 | ||
Latest released protoCURL v1.5.3 |