Skip to content

Query Mirth releases data #524

Query Mirth releases data

Query Mirth releases data #524

Workflow file for this run

name: Query Mirth releases data
on:
schedule:
- cron: '0 0 * * *' # every day at midnight
workflow_dispatch:
inputs:
version:
type: string
description: Mirth connect version
default: 'latest'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create release file
id: process-release
run: python main.py ${{ inputs.version }}
- name: Print outputs
run: |
echo "Mirth version: ${{steps.process-release.outputs.mirth_version}}"
echo "Should commit?: ${{steps.process-release.outputs.should_commit}}"
- name: Print contents of releases.json
run: cat releases.json
- name: Commit new file
if: success() && steps.process-release.outputs.should_commit == 'true'
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git add releases.json releases.min.json
git commit -m "Added release ${{steps.process-release.outputs.mirth_version}}"
git push
- name: Upload artifacts to Repsy
if: success() && steps.process-release.outputs.should_commit == 'true'
uses: ./.github/workflows/upload-packages.yml
with:
version: ${{steps.process-release.outputs.mirth_version}}