-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 2.2 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
40
41
42
43
44
45
46
47
48
49
50
51
# 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:
paths:
- 'example-arxml/**/*.arxml'
jobs:
AutosarUml:
defaults:
run:
shell: pwsh
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Backup EA Project File
id: backupEAProjectFile
run: |
$eaFileName = "counting-logic"
$eaFileExtension = "qeax"
$originalEaProjectFile = '${{ runner.temp }}/' + $eaFileName + '-old.' + $eaFileExtension
$reimportedEaProjectFile = '.\' + $eaFileName + '.' + $eaFileExtension
Copy-Item -Path $reimportedEaProjectFile -Destination $originalEaProjectFile
echo "originalEAProjectFile=$originalEaProjectFile" >> $env:GITHUB_OUTPUT
echo "reimportedEAProjectFile=$reimportedEaProjectFile" >> $env:GITHUB_OUTPUT
echo "fileName=$eaFileName" >> $env:GITHUB_OUTPUT
echo "fileExtension=$eaFileExtension" >> $env:GITHUB_OUTPUT
- name: Run IncQuery AUTOSAR-UML Bridge
uses: IncQueryLabs/incquery-suite-bridge-autosar-uml-action@issues/ARUMLPD-86/package-parameters
with:
arxml_folder_path: example-arxml
ea_model_file_path: "${{steps.backupEAProjectFile.outputs.reimportedEAProjectFile}}"
incquery_username: "${{ secrets.INCQUERY_USERNAME }}"
incquery_password: "${{ secrets.INCQUERY_PASSWORD }}"
license: "${{ secrets.INCQUERY_AUTOSAR_UML_INTEGRATION_LICENSE }}"
targetPackagePath: "Bob's Uncle"
- name: Push updated model
run: |
git config --local user.name "Automatic Model Update"
git config --local user.email "[email protected]"
git add '${{steps.backupEAProjectFile.outputs.reimportedEAProjectFile}}'
git commit -m "Automatic Model Update"
git push