-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.32 KB
/
get-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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}}