-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use terminus-github-actions
and Sage install script cleanup
#123
Conversation
rather than continuing if _not_ CI
rather than anything, we might get weird output if it's not true
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.
PR needs a description. Couple of minor cleanup suggestions at your discretion. Still ✅
private/scripts/helpers.sh
Outdated
cd /files | ||
mkdir cache | ||
# Create a files/cache directory on the host if one does not already exist. | ||
if [ "$(sftp -P 2222 "$sftpuser"@"$sftphost" <<< "ls /files" | grep -c "^cache$")" -eq 0 ]; then |
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.
would be nice if this is done with exit codes instead but maybe not worth the effort.
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 sold on this yet as it still is getting a folder creation error in CI. Pretty sure this works if the script is run normally though and the script doesn't fail so ¯_(ツ)_/¯
so it looks slightly less weird that we're erroring if it's not
this will skip weird stuff and make the output more consistent
terminus-github-actions
and Sage install script cleanup
* put composer diff into a details block * use terminus-github-actions * skip things for CI-only runs * skip multisite stuff if we're not on multisite * add a workflow:wait to wait for the commit to finish before switching to sftp * bail early if CI rather than continuing if _not_ CI * check if is_multisite is 1 rather than anything, we might get weird output if it's not true * only create the directory if it doesn't exist * wrap statement in quotes * verbose output and ls the contents of /files * log that we're checking for multisite so it looks slightly less weird that we're erroring if it's not * remove ="" * use config is-true rather than config get * genrenate a random theme name * change our grep pattern * use `config is-true` directly * replace spaces with hyphens * remove non alphanumeric characters this will skip weird stuff and make the output more consistent
* put composer diff into a details block * use terminus-github-actions * skip things for CI-only runs * skip multisite stuff if we're not on multisite * add a workflow:wait to wait for the commit to finish before switching to sftp * bail early if CI rather than continuing if _not_ CI * check if is_multisite is 1 rather than anything, we might get weird output if it's not true * only create the directory if it doesn't exist * wrap statement in quotes * verbose output and ls the contents of /files * log that we're checking for multisite so it looks slightly less weird that we're erroring if it's not * remove ="" * use config is-true rather than config get * genrenate a random theme name * change our grep pattern * use `config is-true` directly * replace spaces with hyphens * remove non alphanumeric characters this will skip weird stuff and make the output more consistent
pantheon-systems/action-install-terminus
withpantheon-systems/terminus-github-actions
sage-test
)add_symlink
step/files/cache
directory exists before creating itwp config is-true
(rather than runningtheme enable
regardless)