Files
wasmtime/ci/force-ci-bump-version.sh
Alex Crichton 909a5d54d2 Add a manual trigger to force CI to bump crate versions
I'm curious to try out the full workflow so instead of waiting a few
weeks I figured I'd add a manual trigger here too
2021-10-28 10:13:00 -07:00

17 lines
375 B
Bash

#!/bin/bash
if [ -z "$PERSONAL_ACCESS_TOKEN" ]; then
echo "need to set \$PERSONAL_ACCESS_TOKEN to a github token"
exit 1
fi
exec curl --include --request POST \
https://api.github.com/repos/bytecodealliance/wasmtime/actions/workflows/bump-version.yml/dispatches \
--header "Authorization: token $PERSONAL_ACCESS_TOKEN" \
--data @- << EOF
{
"ref": "main"
}
EOF