Sage-Bionetworks / schematic

Package for biomedical data model and metadata ingress management
https://schematicpy.readthedocs.io/en/stable/cli_reference.html
MIT License
22 stars 25 forks source link

Trigger DCA deployment when schematic releases or when `develop` branch gets updated #1026

Open linglp opened 1 year ago

linglp commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, we have to manually update DCA testing instance when the develop branch in schematic gets updated. We could modify our current github workflow so that it could send a post request to DCA's repo and redeploy DCA.

Changes that would need to happen:

On DCA github workflow:


On schematic github workflow: 
- triggers a post request like this: 
  - name: Test front-end deployment
    run: |
      curl -X POST \
      -H "Authorization: token ${{ secrets.ACCESS_TOKEN }}" \
      -H "Accept: application/vnd.github+json" \
      https://api.github.com/repos/Sage-Bionetworks/data_curator/dispatches \
      -d '{"event_type": "trigger-frontend", "client_payload": { "text": "develop branch has been updated"}}'

- the access_token here has to have scope `repo`

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**How important is this feature?** Select from the options below:
• 🏝 Low - it's an enhancement but not crucial for work

**When will use cases depending on this become relevant?** Select from the options below:
• Short-term - 2-4 weeks

**Additional context**
Add any other context or screenshots about the feature request here.
linglp commented 1 year ago

Note: show case at scidev and gather feedbacks