-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.36 KB
/
AutosarUmlActionExample.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
# Copyright (c) IncQuery Labs cPlc.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# The following secrets need to be defined: INCQUERY_USERNAME, INCQUERY_PASSWORD, INCQUERY_AUTOSAR_UML_INTEGRATION_LICENSE
on:
push
jobs:
AutosarUml:
defaults:
run:
shell: pwsh
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
#Install LieberLieber LemonTree.Automation on the Action-Runner and prepare the license
#the secrets.LTALICENSE contains the text from the License File provided
- name: GetLTA
uses: LieberLieber/setup-LemonTree.Automation@v1
id: GetLTA
with:
License: ${{secrets.LTALICENSE}}
#Diff Check between the modified files
- name: DiffCheck
run: |
$output = &'${{steps.GetLTA.outputs.LemonTreeAutomationExecutable}}' diff --theirs A.eapx --mine B.eapx --sfs log.ltsfs
echo $output >> $env:GITHUB_OUTPUT
#Archive Session Files
- name: Archive Session Files
uses: actions/upload-artifact@v3
with:
name: Diff Session File
path: log.ltsfs
retention-days: 5