Skip to content

Commit

Permalink
k, this is a little gross but I see no other way
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed May 27, 2022
1 parent 8ff9fe6 commit d0a432b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
on:
pull_request:
paths:
- action.yml
- install.sh
- .github/workflows/ci.yml

Expand Down
8 changes: 8 additions & 0 deletions action.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { execSync } = require('child_process')

try {
console.info("Installing tea…")
execSync(`${__dirname}/install.sh`, [], {stdio: "inherit"})
} catch (err) {
console.error(err)
}
6 changes: 2 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ name: tea/setup
description: >
Installs https://tea.xyz to your GitHub Actions runner.
runs:
using: composite
steps:
- run: ./install.sh
shell: bash
using: node16
main: action.js
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ elif [ -n "$TEA_SECRET" ]; then
exec /usr/local/bin/tea "$@"
fi
else
if [ "x$PAGER" == "x" ]; then
if test x$PAGER = x; then
PAGER=cat
fi
curl -Ssf https://raw.githubusercontent.com/teaxyz/white-paper/main/white-paper.md | $PAGER
Expand Down

0 comments on commit d0a432b

Please sign in to comment.