Skip to content

Package Comparison Tool #21

Package Comparison Tool

Package Comparison Tool #21

name: Package Comparison Tool
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
workflow_dispatch:
inputs:
FHIRelement:
description: 'element to compare, e.g. min'
required: true
default: 'min'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./PackageComparisonTool/requirements.txt
- name: Execute Naming Convention Check
run: INPUT_ELEMENT=${{ github.event.inputs.FHIRelement }} python ./PackageComparisonTool/packageComparisonTool.py
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
add: '.'