From 304d169ff4c7927f086d0257de2d62a2127a500a Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 15 Jan 2025 13:32:06 -0500 Subject: [PATCH] chmod +x --- .github/workflows/ci.action.yml | 2 +- scripts/publish-release.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 scripts/publish-release.sh diff --git a/.github/workflows/ci.action.yml b/.github/workflows/ci.action.yml index 2d8733f..a235ad5 100644 --- a/.github/workflows/ci.action.yml +++ b/.github/workflows/ci.action.yml @@ -1,5 +1,5 @@ on: - workflow_call: + workflow_dispatch: pull_request: paths: - action.ts diff --git a/scripts/publish-release.sh b/scripts/publish-release.sh old mode 100644 new mode 100755 index e562570..71dd5e0 --- a/scripts/publish-release.sh +++ b/scripts/publish-release.sh @@ -7,7 +7,7 @@ if ! git diff-index --quiet HEAD --; then exit 1 fi -if [ "$(git rev-parse --abbrev-ref HEAD)" != main ]; then +if [ "$(git rev-parse --abbrev-ref HEAD)" != v2/main ]; then echo "error: requires main branch" >&2 exit 1 fi @@ -20,7 +20,7 @@ fi git fetch origin -pft # ensure github tags the right release -git push origin main +git push origin v2/main versions="$(git tag | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+')" v_latest="$(bunx -- semver --include-prerelease $versions | tail -n1)" @@ -61,7 +61,7 @@ else fi -gh workflow run ci.action.yml --raw-field version="$v_new" +gh workflow run ci.action.yml --ref v2/main # ^^ infuriatingly does not tell us the ID of the run gum spin --title 'sleeping 5s because GitHub API is slow' -- sleep 5