-
Notifications
You must be signed in to change notification settings - Fork 25
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
Added release-test.yml github workflow script #80
Conversation
PrathumP
commented
Jul 2, 2023
- Closes issue write release-test.yml github workflow script #77
.github/workflows/release-test.yml
Outdated
- name: Replace file contents | ||
run: | | ||
# Replace ../src/main.roc with link to latest platform release | ||
sed -i 's|../src/main.roc|https://github.com/roc-lang/roc/blob/main/examples/cli/cli-platform/main.roc|g' examples/**/*.roc |
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 for working on this @PrathumP :)
Note that github links like this one will not work with roc for security reasons, I expect that you will need to:
- use the github api to get the latest pre-release
- get all assets for that release
- get every file from the assets that is either a
tar.br
or atar.gz
and check which is the most recently created file - and then replace the
../src/main.roc
with the link to the file from the previous step
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.
Got it. I've made a PR but I'm not sure about the changes so please let me know what else needs to be done or corrected.
The args example failure is a strange one, I'm going to come back to it later. |
For reference, I've made an issue for the args failure (#82). It also occurs in earlier releases. |