forked from microsoft/ALAppExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.68 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
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: Updated Version Number. Use Major.Minor for absolute change, use +Major.Minor for incremental change.
required: true
directCommit:
description: Direct COMMIT (Y/N)
required: false
default: 'N'
permissions:
contents: write
pull-requests: write
defaults:
run:
shell: powershell
env:
ALGoOrgSettings: ${{ vars.ALGoOrgSettings }}
ALGoRepoSettings: ${{ vars.ALGoRepoSettings }}
jobs:
IncrementVersionNumber:
runs-on: [ windows-latest ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@preview
with:
shell: powershell
eventId: "DO0096"
- name: Increment Version Number
uses: microsoft/AL-Go-Actions/IncrementVersionNumber@preview
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
project: ${{ github.event.inputs.project }}
versionNumber: ${{ github.event.inputs.versionNumber }}
directCommit: ${{ github.event.inputs.directCommit }}
- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@preview
with:
shell: powershell
eventId: "DO0096"
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}