Skip to content

Commit

Permalink
chmod +x
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 15, 2025
1 parent 3cbdd70 commit 7eb22bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
- action.ts
Expand Down
8 changes: 4 additions & 4 deletions scripts/publish-release.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)"
Expand Down Expand Up @@ -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
Expand All @@ -74,7 +74,7 @@ if ! gh run watch --exit-status $run_id; then
exit $foo
fi

./dist.sh
./scripts/dist.sh
git add ../dist
git commit --message v$v_new
git tag v$v_new
Expand Down

0 comments on commit 7eb22bd

Please sign in to comment.