Skip to content
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

Add a workflow that triggers an action in matnwb using the workflow dispatch api when data/records.json changes #22

Closed
ehennestad opened this issue Nov 28, 2024 · 1 comment

Comments

@ehennestad
Copy link

I am adding a function to matnwb (installNwbExtension) which has a list of available extensions. It would be great if this list could be updated when new records are added to the extension catalog.

Todo:
Add a workflow with a task similar to the following which triggers on pushes to main when data/records.json is changed. It uses a POST request to trigger a GitHub Actions workflow in the matnwb repository by using the workflow_dispatch API endpoint

- name: Trigger matnwb
      run: |
        curl -XPOST -u "${{secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/NeurodataWithoutBorders/matnwb/actions/workflows/update_extension_list.yml/dispatches

Question: Is there a bot account / token pair that could be used for this?

@ehennestad
Copy link
Author

Closing this issue. This suggestion would require adding secrets to this repository managed by an admin of the NeurdataWithoutBorders organisation. That extra step and potential maintenance is not worth the effort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant