Query Mirth releases data #509
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
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}} |