Skip to content

Commit

Permalink
Change GitHub workflows and enable automatic changelogs and semantic …
Browse files Browse the repository at this point in the history
…versioning (#273)

* update release workflow

* fix branch name extraction

* fix branch retrieval

* fix naming of branch based on tag commit

* update release packaging and remove build version number

* update workflow

* add release changelog

* Remove "needs" as this is not part of the steps syntaxs

* Fix version error for actions/create-release

* add additional log outpu

* create new workflows

* fix workflows

* update workflow

* fix workflow setupt

* update workflow and FIx Project Renaming

* fix workflow order and fix project renaming

* fix workflow order and fix project renaming

* revert commit on UpdateProjectVersions.ps1

* fix release asset naming

* update release-drafter configuration

* Fix release-drafter configuration and fix asset upload

* try fixing asset upload

* Fixing upload and changelog creation

* fix versioning

* TRY updating asset upload

* Fix changelog configuration

* Fix attaching release assets

* Fix Version naming for release asset upload
update README.md
Remove release-drafter.yml

* Fix release Note generation

* update changelog template

* update changelog template

* update changelog builder config

* Freezor/refactor prpgram env from array to enumerable (#1)

* remove old code

* fix call of now deleted code

* Remove all references to OPCUA

* update CHANGELOG.md

* transform program.env from array to List

* Fix indexOf from array to list

* fix launch and prevent certificate crash

* Fix changelog builder

* update path of changelog config

* fix  changelog for no prev tags

* Freezor/refactor program env from array to enumerable (#2)

* remove old code

* fix call of now deleted code

* Remove all references to OPCUA

* update CHANGELOG.md

* transform program.env from array to List

* Fix indexOf from array to list

* fix launch and prevent certificate crash

* use target-type new

* fix build syntax

* Update prerelease-on-merge-to-main.yml

* fix changelog_configuration.json

* update workflows

* update fetching of latest tag to build release notes againt

* update changelog_configuration.json

* update path to changelog_configuration.json

* fix output for latest tag extraction

* fix check-release.yml

* fix timestamp in check-release.yml

* fix timestamp variable in set_timestamp

* fix timestamp usage

* fix date extraction

* fix again

* update datetime string

* update artefact uploade

* Create codeql.yml

* remove codeql.yml

* fix deprecated github action versions

* add .editorconfig

* update file styling

* add new code analysis workflow

* fix analysis workflow

* update analysis runner

* update analysis

* fix path to solution

* improve message

* add format report

* change verbosity and update editorconfig

* fix dotnetformat command

* change workflow

* fix analysis

* add codeQL analytics

* update code analysis

* update build steps for codeQL

* update build step

* update codeql build steps

* Re-Order steps

* remove autobuild

* add extended query suite

* update workflow naming

* remove check-style.yml

* remove build-docker-images.yml as it is only used at one specific branch which is no longer active

* remove build-and-publish-docker-images-release.yml as it is now used in other workflows

* Update workflow names and include docker build and release job

* remove check-release.yml workflow to be triggered on push to main, as the prerelease build is triggered anyway and so the check is included there
  • Loading branch information
Freezor authored Jun 13, 2024
1 parent 5613f75 commit 0a58ba5
Show file tree
Hide file tree
Showing 18 changed files with 1,093 additions and 322 deletions.
111 changes: 111 additions & 0 deletions .github/changelog_configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"categories": [
{
"title": "## ⚡️ Added",
"labels": [
"feature",
"add",
"added"
]
},
{
"title": "## 🐛 Fixed",
"labels": [
"fix",
"fixed",
"bug",
"bugfix"
]
},
{
"title": "## 🔄 Changed",
"labels": [
"changed",
"change",
"chore",
"adapted"
]
},
{
"title": "## 🕰 Deprecated",
"labels": [
"deprecated",
"deprecate",
"obsolete",
"obsoleted"
]
},
{
"title": "## 🗑 Removed",
"labels": [
"removed",
"deleted",
"delete"
]
},
{
"title": "## 🚀 Dependencies",
"labels": [
"dependencies"
]
},
{
"title": "## 🛑 Breaking Changes",
"labels": [
"breaking"
]
},
{
"title": "## 🧪 Tests",
"labels": [
"test"
]
}
],
"ignore_labels": [
"ignore"
],
"sort": {
"order": "ASC",
"on_property": "mergedAt"
},
"template": "# 📦 Changelog\n\n<details>\n<summary>\n\n## Categories\n\n{{CATEGORIES}}\n</summary>\n\n# {{UNCATEGORIZED}}\n\n[🔗 Release Diff](RELEASE_DIFF)\n\n## 👥 Contributors\n\n{{CONTRIBUTORS}}\n</details>",
"pr_template": "- #{{TITLE}} (by {{AUTHOR}} in ##{{NUMBER}})",
"empty_template": "- No changes. See the [Changelog](CHANGELOG.md) for more information.",
"label_extractor": [
{
"pattern": "(.*)",
"target": "$1",
"flags": "gu"
}
],
"reference": {
"pattern": ".*\\#(.*).*",
"on_property": "body",
"method": "replace",
"target": "$1"
},
"transformers": [
{
"pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)",
"target": "- $4\n - $6"
}
],
"trim_values": false,
"max_tags_to_fetch": 200,
"max_pull_requests": 200,
"max_back_track_time_days": 365,
"exclude_merge_branches": [
"Owner/qa"
],
"tag_resolver": {
"method": "semver",
"filter": {
"pattern": "api-(.+)",
"flags": "gu"
}
},
"base_branches": [
"dev"
]
}
5 changes: 4 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List
any dependencies that are required for this change.

## Motivation and Context

<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

Expand All @@ -18,6 +20,7 @@ Please delete options that are not relevant.
- [ ] This change requires a documentation update

## How Has This Been Tested?

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->
Expand Down
110 changes: 0 additions & 110 deletions .github/workflows/build-and-package-release.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/build-and-publish-docker-images-release.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .github/workflows/build-and-publish-docker-images.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Build-and-publish-docker-images-workflow
name: Build and publish docker images when release is published

on:
push:

release:
types: [ published ]

jobs:
Build-and-publish-docker-images:
runs-on: ubuntu-latest
if: |
contains(github.event.pull_request.body, 'The workflow build-and-publish-docker-images was intentionally skipped.') == false &&
contains(github.event.head_commit.message, 'DockerHub')
contains(github.event.pull_request.body, 'The workflow build-and-publish-docker-images was intentionally skipped.') == false
steps:
- uses: actions/checkout@master

Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/build-docker-images.yml

This file was deleted.

Loading

0 comments on commit 0a58ba5

Please sign in to comment.