Closed benolayinka closed 4 years ago
I think this won't work anyway. It saves the json as a build artifact, but to actually commit the file it would need to be able to push directly to master
This is blocking https://github.com/TheThingsNetwork/lorawan-stack/pull/2562
@johanstokking do you have a good idea how to make this flow work, using gh actions? My action won't work because I don't know how to push to master
@johanstokking do you have a good idea how to make this flow work, using gh actions? My action won't work because I don't know how to push to master
In the link you referenced there are instructions to push to master right?
@johanstokking do you have a good idea how to make this flow work, using gh actions? My action won't work because I don't know how to push to master
In the link you referenced there are instructions to push to master right? I don't have permission to commit directly to master.
@johanstokking do you have a good idea how to make this flow work, using gh actions? My action won't work because I don't know how to push to master
In the link you referenced there are instructions to push to master right?
Yep but the action doesn't have permission to push directly to the master branch
Do we really need to do this as a Github Action? Can't we just ask contributors to run
make generate
or something, like we ask them to do in TheThingsNetwork/lorawan-stack?
What's the advantage of doing it manually vs automatically?
The advantage of doing it manually before submitting the pull request is that we can verify in the pull request that it's okay, and that we don't have to disable branch protections
The advantage of doing it manually before submitting the pull request is that we can verify in the pull request that it's okay, and that we don't have to disable branch protections
Maybe I can just push the file to another branch and read it from there
The volatility in this repo is minimal anyway, so asking people to run a generation command before their PR checks are green is also a good solution imo.
The volatility in this repo is minimal anyway, so asking people to run a generation command before their PR checks are green is also a good solution imo.
Closing, for now we will just pull the file as part of ./mage docs:deps
https://github.com/TheThingsNetwork/lorawan-stack/pull/2562#issuecomment-638879658
Summary
Generate json from yml
Changes
Notes for Reviewers
...
Checklist