-
Notifications
You must be signed in to change notification settings - Fork 89
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
The CI for the library should offer a repository dispatch #1021
Comments
Downstream fix for telefonicaid/iotagent-node-lib#1021
Upstream fix for telefonicaid#1021
PRs related with this issue:
GitHub has auto-close this issue, but maybe is wiser to let it opened while we can check that the system is working |
Even better would be to close it after we've got dispatch working with |
No problem in adding additional token as tokens in this repo... however, how this could be managed in ci.yml? What we have now is:
But I understand more of these secrets.xxxx should be added there (i.e. REPO_ACCESS_TOKEN_FF, REPO_ACCESS_TOKEN_ATOS, etc.). |
IOTAManager was missing. The following PRs cover it: |
Not sure if the system is working properly... Just after merging PR #1104 CI actions we can see at https://github.com/telefonicaid/iotagent-node-lib/runs/3598938988?check_suite_focus=true So it seems the dispatch job has not been executed. In fact, if we see for instance iotagent-ul actions (https://github.com/telefonicaid/iotagent-ul/actions) we can si last action was 2 hours ago... Any clue? |
There is something wrong with the
The test run didn't include that filter. |
It looks like if: ${{ github.ref == 'refs/heads/master' }} or if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }} should be sufficient |
Done in PR #1105 |
Much better now (https://github.com/telefonicaid/iotagent-node-lib/actions/runs/12339361849) :) |
In the https://github.com/telefonicaid/iotagent-ul/actions page we see a lib-update job: So it seems it works! |
Related to telefonicaid/lightweightm2m-iotagent#248 (comment)
At the moment whenever changes are made in the IoT Agent Node library in this repo here, they are not witnessed downstream until a new build is triggered. The CI for this repo should offer a trigger to the IoT Agents whenever code is successfully merged into master. An exisiting GitHub Action can already do this provided that a PAT token is added a a secret within this repository. You'll need something like:
Each of the IoT Agents CI could then be altered to handle both a manual trigger and the
iot-agent-node-lib
event e.g.:This would avoid nasty discoveries if any downstream project is relying on something it shouldn't.
The text was updated successfully, but these errors were encountered: