-
Notifications
You must be signed in to change notification settings - Fork 39
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
Set CI_BRANCH_BASE for GitHub Actions #114
Comments
After talking to GitHub support and after doing some more searching it appears GitHub sets both This could simplify things in bundlewatch/src/app/config/getCIVars.js Lines 35 to 36 in 88892bf
...and also allow to use set I don't know if this will fix my issue with our v4-dev branch where bundlewatch is always comparing against master. Maybe I need to set |
Looks like However you should be able to manually set the |
@iamogbz thanks for the reply! I can set the environment variable for the v4-dev branch, but since GitHub does provide a way to do this automatically, the code should take this into account, like it does with Travis and the other CI systems. If I set the environment variable do I also need to change the |
Setting the var works. I didn't change Anyway, I still think it'd be a nice improvement if bundlewatch detected this automatically like it happens with Travis. |
@XhmikosR glad it worked for now. Will look into getting to work for github actions as well as other CI. |
Will replace the
|
I think it's just a couple of lines to add in the current code, though? Don't get me wrong, I also don't like reinventing the wheel, but in the meantime this should do the job 🙂 |
@iamogbz so, I tried this without setting the |
@XhmikosR strange! Do you mind providing more details on your ci logs in the case you're able to reproduce. |
@iamogbz it seems it's actually broken completely now even for master, but I'm not sure if something else changed: https://github.com/twbs/bootstrap/pull/30814/checks?check_run_id=673413078#step:8:11 For v4-dev without specifying the env var: https://github.com/twbs/bootstrap/runs/659104517?check_suite_focus=true#step:16:1 |
Do you have a pull request for that? Since github only set the env vars for PRs |
Caused by dependency update in bundlewatch service resolved now |
@iamogbz that was in a PR against the v4-dev branch, but I dropped the patch after I noticed it didn't work.
Thanks! |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
There's no way to diff against a branch other than master on GitHub Actions CI
If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/twbs/bootstrap/tree/v4-dev
What is the expected behavior?
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, bundlewatch version, and Operating System.
Recently I switched bootstrap from bundlesize to bundlewatch and it works quite well!
I wanted to figure out how to diff against a branch other than master, in our case v4-dev. I couldn't find how to make this work with GitHub Actions, since the env variables don't seem to provide a similar variable to
CI_BRANCH_BASE
Does anybody have any ideas?
The text was updated successfully, but these errors were encountered: