Skip to content

Module: polysolver

Module: polysolver #11

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "feature/sync-gitbook" ]
pull_request:
branches: [ "feature/sync-gitbook" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
new-module:
if: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && contains( github.event.head_commit.message, 'Module:\ ')) }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Split branch name
env:
MODULE: ${{github.event.head_commit.message}}
id: split
run: echo "::set-output name=fragment::${MODULE##*:}"
- uses: actions/checkout@v4
with:
ref: docs
sparse-checkout: modules
- run: echo "{% @github-files/github-code-block url='https://github.com/mskcc-omics-workflows/modules/blob/develop/modules/msk/${{ steps.split.outputs.fragment }}/meta.yml' %}" > ./modules/${{ steps.split.outputs.fragment }}.md
- run: echo "* [${{ steps.split.outputs.fragment }}](${{ steps.split.outputs.fragment }}.md)" >> ./modules/SUMMARY.md
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "add doc for ${{ steps.split.outputs.fragment }}"
add: '*.md --force'
cwd: './modules/'