-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial action implementation #1
Conversation
28203df
to
d4e49c4
Compare
5d35601
to
f348446
Compare
url=$URL_PREFIX/$(chalk_version_name) | ||
info Downloading chalk from "$url" | ||
rm -f "$TMP/$name"{,.sha256} | ||
wget --quiet --directory-prefix=$TMP "$url"{,.sha256} || ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% on Github's macosx runners, but wget
isn't available by default in macos. curl
usually is though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
# get the chalk file name for the version/os/architecture | ||
function chalk_version_name { | ||
echo "chalk-$version-$(uname -s)-$(uname -m)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just flagging here that that uname -s
will return Darwin on macosx boxes. We have packages generated server side that will correctly resolve to 'Darwin' but just flagging as 'macos' is often used elsewhere.
NOT broken, just noting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is expected behavior. we upload Darwin
variant to the release folder for this reason so the download is super simple without any conditional logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of tiny comments, and one potential bug where wget
being called that will probably fail on a macos runner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, slack convo verified wget availability on GH macosx runners 👍
This adds basic implementation of the action to setup chalk in github actions. The script:
$HOME/.chalk/bin
toPATH
$HOME/.chalk/bin/chalk
docker
command in$HOME/.chalk/bin/docker
Action shows basic logic which shows up as:
However if debug logging is enabled, the script enables
set -x
in bash which will show all executed commands (a bit verbose but shows exactly what it does) in addition to showing all chalk output as verboseThere are 3 types of actions in github:
Composite action was chosen as it allows to execute a basic bash script which potentially can be reused to install
chalk
in other CI environments/containers