make json dir #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow automatically generates all manifests currently specified by the data model | |
# Outputs are excel files and json schemas | |
# Runs AFTER changes to the data model have been reviewed in a PR and merged into main | |
name: Store Current Manifests | |
on: | |
push: | |
branches: schematic-228-template-workflow | |
workflow_dispatch: | |
concurrency: | |
# cancel the current running workflow from the same branch, PR when a new workflow is triggered | |
# when the trigger is not a PR but a push, it will use the commit sha to generate the concurrency group | |
# {{ github.workflow }}: the workflow name is used to generate the concurrency group. This allows you to have more than one workflows | |
# {{ github.ref_type }}: the type of Git ref object created in the repository. Can be either branch or tag | |
# {{ github.event.pull_request.number}}: get PR number | |
# {{ github.sha }}: full commit sha | |
# credit: https://github.com/Sage-Bionetworks-Workflows/sagetasks/blob/main/.github/workflows/ci.yml | |
group: >- | |
${{ github.workflow }}-${{ github.ref_type }}- | |
${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
generate: | |
name: generate-and-upload-manifests | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
SCHEMATIC_SERVICE_ACCOUNT_CREDS: ${{ secrets.SCHEMATIC_SERVICE_ACCOUNT_CREDS }} | |
SYNAPSE_AUTH_TOKEN: ${{ secrets.SYNAPSE_TOKEN_DPE }} | |
#SYNAPSE_UPLOAD_FOLDER_ID: syn25878249 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
export PATH="$HOME/.local/bin:$PATH" | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Generate all manifests | |
working-directory: processes | |
run: poetry run ./generate_all_templates.sh | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: "GitHub Action: generate latest manifests" | |
title: "Update manifests" | |
body: | | |
This PR updates the manifests based on the latest changes. | |
Please review and merge if everything looks correct. | |
branch: update-manifests | |
base: main | |
labels: | | |
automated pr | |
manifest update | |
draft: true | |
delete-branch: false | |
#- name: Upload all manifests | |
# working-directory: elite-data/manifest-templates | |
# run: poetry run ../processes/upload_templates.sh |