|
1 | 1 | name: Release (cron) |
2 | 2 | on: |
3 | 3 | schedule: |
4 | | - - cron: "0 0 * * *" |
| 4 | + - cron: "*/5 * * * *" |
5 | 5 | workflow_dispatch: |
| 6 | + inputs: |
| 7 | + version: |
| 8 | + description: "Version Number" |
| 9 | + type: string |
6 | 10 | env: |
7 | 11 | VERSION: 4.8 |
8 | 12 | jobs: |
9 | | - linux: |
| 13 | + version: |
| 14 | + if: ${{ github.event_name == 'schedule' }} |
| 15 | + runs-on: ubuntu-latest |
| 16 | + outputs: |
| 17 | + version: ${{ steps.version.outputs.version }} |
| 18 | + steps: |
| 19 | + - name: Log Version |
| 20 | + run: date +'%Y%m%d-%H%M' |
| 21 | + - name: Output Version |
| 22 | + id: version |
| 23 | + run: echo "version=$(date +'%Y%m%d-%H%M')" >> $GITHUB_OUTPUT |
| 24 | + test: |
10 | 25 | strategy: |
11 | 26 | matrix: |
12 | | - os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] |
13 | | - uses: ./.github/workflows/release-linux.yml |
14 | | - with: |
15 | | - version: 4.8 |
16 | | - platform: ${{ matrix.os }} |
17 | | - windows: |
18 | | - strategy: |
19 | | - matrix: |
20 | | - os: [windows-2022, windows-2019] |
21 | | - uses: ./.github/workflows/release-windows.yml |
22 | | - with: |
23 | | - version: 4.8 |
24 | | - platform: ${{ matrix.os }} |
25 | | - mac: |
26 | | - strategy: |
27 | | - matrix: |
28 | | - os: [macos-12, macos-11, macos-10.15] |
29 | | - uses: ./.github/workflows/release-mac.yml |
30 | | - with: |
31 | | - version: 4.8 |
32 | | - platform: ${{ matrix.os }} |
| 27 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 28 | + runs-on: ${{ matrix.os }} |
| 29 | + needs: version |
| 30 | + steps: |
| 31 | + - name: Log version ${{ needs.version.outputs.version }} |
| 32 | + run: echo ${{ needs.version.outputs.version }} |
| 33 | + # linux: |
| 34 | + # strategy: |
| 35 | + # matrix: |
| 36 | + # os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] |
| 37 | + # uses: ./.github/workflows/release-linux.yml |
| 38 | + # with: |
| 39 | + # version: 4.8 |
| 40 | + # platform: ${{ matrix.os }} |
| 41 | + # windows: |
| 42 | + # strategy: |
| 43 | + # matrix: |
| 44 | + # os: [windows-2022, windows-2019] |
| 45 | + # uses: ./.github/workflows/release-windows.yml |
| 46 | + # with: |
| 47 | + # version: 4.8 |
| 48 | + # platform: ${{ matrix.os }} |
| 49 | + # mac: |
| 50 | + # strategy: |
| 51 | + # matrix: |
| 52 | + # os: [macos-12, macos-11, macos-10.15] |
| 53 | + # uses: ./.github/workflows/release-mac.yml |
| 54 | + # with: |
| 55 | + # version: 4.8 |
| 56 | + # platform: ${{ matrix.os }} |
0 commit comments