generated from microsoft/AL-Go-PTE
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (55 loc) · 1.77 KB
/
IncrementVersionNumber.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Increment Version Number
on:
workflow_dispatch:
inputs:
project:
description: Project name if the repository is setup for multiple projects (* for all projects)
required: false
default: '.'
versionNumber:
description: New Version Number (Major.Minor)
required: true
directCommit:
description: Direct COMMIT (Y/N)
required: false
default: 'N'
defaults:
run:
shell: PowerShell
jobs:
Initialization:
runs-on: [ windows-latest ]
outputs:
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/[email protected]
with:
eventId: "DO0096"
Update:
runs-on: [ windows-latest ]
needs: [ Initialization ]
steps:
- name: Increment Version Number
uses: microsoft/AL-Go-Actions/[email protected]
with:
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
project: ${{ github.event.inputs.project }}
versionNumber: ${{ github.event.inputs.versionNumber }}
directCommit: ${{ github.event.inputs.directCommit }}
PostProcess:
if: always()
runs-on: [ windows-latest ]
needs: [ Initialization, Update ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Finalize the workflow
id: PostProcess
uses: microsoft/AL-Go-Actions/[email protected]
with:
eventId: "DO0096"
telemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}