You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Information about jNeuroML is available in BioSimulators. To keep the version of jNeuroML in BioSimulators up to date, we recommend automating the release of new versions to BioSimulators.
This can be done using the GitHub API.
An easy way to do this is with the GitHub action below. This would automatically push jNeuroML to BioSimulators when releases are published to GitHub. To use the action:
Save the YAML below to .github/workflows/release-biosimulators.yml
BIOSIMULATORS_GH_USERNAME: the name of the GitHub user who pushes jNeuroML to BioSimulators (e.g., pgleeson). pgleeson already has permissions for this.
BIOSIMULATORS_GH_TOKEN: token for BIOSIMULATORS_GH_USERNAME
name: Update BioSimulators command-line interface and Docker imageon:
release:
types:
- publishedjobs:
updateBioSimulatorsCliAndDockerImage:
name: Trigger the building and release of the BioSimulators version of jNeuroMLif: startsWith(github.ref, 'refs/tags/v')runs-on: ubuntu-latestenv:
# Owner/repository-id for the GitHub repository for the downstream# command-line interface and Docker image.DOWNSTREAM_REPOSITORY: biosimulators/Biosimulators_jNeuroML# Username/token to use the GitHub API to trigger an action on the GitHub# repository for the downstream command line interface and Docker image.# Tokens can be generated at https://github.com/settings/tokens and should# have the scope "repo".BIOSIMULATORS_GH_USERNAME: ${{ secrets.BIOSIMULATORS_GH_USERNAME }}BIOSIMULATORS_GH_TOKEN: ${{ secrets.BIOSIMULATORS_GH_TOKEN }}steps:
- name: Trigger a GitHub action that will build and release the BioSimulators version of jNeuroMLrun: | PACKAGE_VERSION="${GITHUB_REF/refs\/tags\/v/}" WORKFLOW_FILE=ci.yml curl -X POST \ -u ${BIOSIMULATORS_GH_USERNAME}:${BIOSIMULATORS_GH_TOKEN} \ -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${DOWNSTREAM_REPOSITORY}/actions/workflows/${WORKFLOW_FILE}/dispatches \ -d "{\"inputs\": {\"simulator\": \"jneuroml\", \"simulatorVersion\": \"${PACKAGE_VERSION}\", \"simulatorVersionLatest\": \"true\"}}"
The text was updated successfully, but these errors were encountered:
Information about jNeuroML is available in BioSimulators. To keep the version of jNeuroML in BioSimulators up to date, we recommend automating the release of new versions to BioSimulators.
This can be done using the GitHub API.
An easy way to do this is with the GitHub action below. This would automatically push jNeuroML to BioSimulators when releases are published to GitHub. To use the action:
.github/workflows/release-biosimulators.yml
BIOSIMULATORS_GH_USERNAME
: the name of the GitHub user who pushes jNeuroML to BioSimulators (e.g.,pgleeson
).pgleeson
already has permissions for this.BIOSIMULATORS_GH_TOKEN
: token forBIOSIMULATORS_GH_USERNAME
BIOSIMULATORS_GH_USERNAME
can be created a https://github.com/settings/tokensrepo
The text was updated successfully, but these errors were encountered: