-
Notifications
You must be signed in to change notification settings - Fork 192
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
Setup strauss installar script to auto download and use latest release #7311
base: develop
Are you sure you want to change the base?
Conversation
@ravinderk i'm hesitant to always install the latest release of strauss without testing incremental versions in our workflow. |
@jonwaldstein I locked release version to |
@ravinderk okay, thanks that makes sense 😄 @JasonTheAdams I would appreciate your eyes on this as well - since you were the one who setup strauss 🧙. |
It seems like this is taking what's currently a single line of inline bash and breaking it out into a bash script. Is the current line not doing something? Why not just change the inline script to be https://github.com/BrianHenryIE/strauss/releases/download/0.16.0/strauss.phar? |
@JasonTheAdams I added an extra feature in the bash script. The cached |
Got it, @ravinderk! I see the value and I like it! Rather than storing the version in a file, I suggest using
You can use a little regex to easily parse the version from that line. As a note, I put in a request for a plain version flag. |
@JasonTheAdams version command output is not reliable at this moment and I created an issue on their repository BrianHenryIE/strauss#90. For this reason, I am using a txt file to store the version. |
@ravinderk According to that Issue this is working in the PHAR. I just tested it in 0.14.0 and it worked fine, too. |
@JasonTheAdams I refactored logic to use version to get |
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.
Thanks! I like it! I can definitely see this avoiding some strange issues in the future. 👍
The github action for generating a zip is failing on this PR due to some permission issue with the Anyone have an idea what's going on? |
@JasonTheAdams @ravinderk we have a permission issue with the |
@jonwaldstein I am not sure what is an issue with the rsync command and directory permission. We need to debug the GitHub action, or we can update the workflow to set the correct permission to the Can you take of this? |
@ravinderk yeah, i'm confused why it's only failing from permissions issues in this PR 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.
The plugin zip is still failing for this which should be resolved before merging.
https://github.com/impress-org/givewp/actions/runs/9682069602/job/26714974478
This PR is stale because it has been open 45 days with no activity. Stale PRs will NOT be automatically closed. |
Description
This pull request sets a bash script to automatically use the latest release of
strauss
package.Testing Instructions
composer install
strauss.phar
should install whenbin/strauss.phar
does not existbin/strauss-version.txt
does not existstaruss
version inbin/strauss-version.txt
does not match latest release.composer install
should always install latest release ofstrauss
Note: you can run
bin/strauss-install.sh
for testing.Pre-review Checklist
@unreleased
tags included in DocBlocks