-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 1.86 KB
/
DataMiner+CI+Automation.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
52
53
54
55
56
57
58
59
60
61
name: DataMiner CI Automation
on:
push:
branches: []
tags:
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+-[0-9a-zA-Z]+'
workflow_dispatch:
jobs:
CI:
name: CI
uses: SkylineCommunications/_ReusableWorkflows/.github/workflows/Automation Master Workflow.yml@main
with:
referenceName: ${{ github.ref_name }}
runNumber: ${{ github.run_number }}
referenceType: ${{ github.ref_type }}
repository: ${{ github.repository }}
owner: ${{ github.repository_owner }}
sonarCloudProjectName: qsdqsd
secrets:
api-key: ${{ secrets.DATAMINER_DEPLOY_KEY }}
sonarCloudToken: ${{ secrets.SONAR_TOKEN }}
Release:
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
needs: CI
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Check Changelog
id: changelog_check
run: |
FILE=./Documentation/CHANGELOG_${{ secrets.REF_NAME }}.md
echo "$FILE"
if [ -f "$FILE" ]
then
echo "changelog_exists=true" >> $GITHUB_OUTPUT
echo "changelog_file=$FILE" >> $GITHUB_OUTPUT
exit 0
else
echo "changelog_exists=false" >> $GITHUB_OUTPUT
exit 1
fi
- name: Logging
run: |
echo ${{ steps.changelog_check.outputs.changelog_exists }}
echo ${{ steps.changelog_check.outputs.changelog_file }}
# - name: Create Release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: ${{ github.ref }}
# body_path: ${{ steps.changelog_check.outputs.changelog_file }}
# draft: false
# prerelease: false