Skip to content

Commit 5041881

Browse files
Update main.yml
1 parent 2fdac89 commit 5041881

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.github/workflows/main.yml

+32-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
jobs:
1717

1818
CI:
19-
uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Connector Master Workflow.yml@Connectors
19+
uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Connector Master Workflow.yml@main
2020
with:
2121
referenceName: ${{ github.ref_name }}
2222
runNumber: ${{ github.run_number }}
@@ -29,6 +29,37 @@ jobs:
2929
api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }}
3030
sonarCloudToken: ${{ secrets.SONAR_TOKEN }}
3131

32+
name: DataMiner CICD Connector
33+
34+
# Controls when the workflow will run
35+
on:
36+
# Triggers the workflow on push or pull request events but only for the master branch
37+
push:
38+
branches: []
39+
tags:
40+
- "[0-9]+.[0-9]+.[0-9]+.[0-9]+"
41+
- "[0-9]+.[0-9]+.[0-9]+.[0-9]+-**"
42+
43+
# Allows you to run this workflow manually from the Actions tab
44+
workflow_dispatch:
45+
46+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
47+
jobs:
48+
49+
CI:
50+
uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Connector Master Workflow.yml@main
51+
with:
52+
referenceName: ${{ github.ref_name }}
53+
runNumber: ${{ github.run_number }}
54+
referenceType: ${{ github.ref_type }}
55+
repository: ${{ github.repository }}
56+
owner: ${{ github.repository_owner }}
57+
sonarCloudProjectName: SkylineCommunications_SLC-C-Example_HTTP
58+
secrets:
59+
# The API-key: generated in the DCP Admin app (https://admin.dataminer.services/) as authentication for a certain DataMiner System.
60+
api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }}
61+
sonarCloudToken: ${{ secrets.SONAR_TOKEN }}
62+
3263
# Optional 0 or More CD Jobs as needed
3364
# CD:
3465
# # if: github.ref_type == 'tag'

0 commit comments

Comments
 (0)