Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Commit 895b41f

Browse files
committed
run actions in sync
1 parent 3d22926 commit 895b41f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/sync_otp_releases.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ tags() {
88
my_tags=$(tags QuinnWilton/beamup)
99
otp_tags=$(
1010
tags erlang/otp | \
11-
# OTP 23.2.6+, 23.3+, or 24
11+
# OTP 23.2+, 23.3+, or 24
1212
grep -e OTP-23.2 -e OTP-23.3 -e OTP-24
1313
)
1414

1515
for i in $otp_tags; do
1616
if [[ "$my_tags" == *"$i"* ]]; then
1717
echo release $i already exists
1818
else
19-
echo "syncing $i"
20-
gh api -XPOST repos/QuinnWilton/beamup/actions/workflows/build_otp.yml/dispatches \
21-
--input <(echo '{"ref":"main","inputs":{"version":"'${i/OTP-/}'"}}')
19+
echo "Kicking off build for $i"
20+
gh workflow run -R "QuinnWilton/beamup" build_otp.yml -f version=${i/OTP-/}
2221
fi
2322
done

0 commit comments

Comments
 (0)