From 3a21cd3a2c7a330d52f3dab2522cce2f29c838f7 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Tue, 27 Jun 2023 15:26:45 +0200 Subject: [PATCH] Add workflow templates for 'Update Changelog' & 'Release drafter' workflows --- workflow-templates/ft-releases.properties.json | 8 -------- workflow-templates/ft-releases.yml | 14 -------------- workflow-templates/release-drafter.properties.json | 8 ++++++++ workflow-templates/release-drafter.yml | 12 ++++++++++++ .../update-changelog.properties.json | 8 ++++++++ workflow-templates/update-changelog.yml | 11 +++++++++++ 6 files changed, 39 insertions(+), 22 deletions(-) delete mode 100644 workflow-templates/ft-releases.properties.json delete mode 100644 workflow-templates/ft-releases.yml create mode 100644 workflow-templates/release-drafter.properties.json create mode 100644 workflow-templates/release-drafter.yml create mode 100644 workflow-templates/update-changelog.properties.json create mode 100644 workflow-templates/update-changelog.yml diff --git a/workflow-templates/ft-releases.properties.json b/workflow-templates/ft-releases.properties.json deleted file mode 100644 index bbc0809..0000000 --- a/workflow-templates/ft-releases.properties.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "Update Changelog & Release", - "description": "Update a CHANGELOG.md file based on merged PRs and create a release whenever a new tag is pushed.", - "iconName": "ft-logo", - "categories": [ - "Continuous integration" - ] -} diff --git a/workflow-templates/ft-releases.yml b/workflow-templates/ft-releases.yml deleted file mode 100644 index e4c9fa9..0000000 --- a/workflow-templates/ft-releases.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Update Changelog & Release - -on: - push: - tags: - - '*' - -jobs: - call-workflow-ft-releases: - # permissions: - # contents: read - # pull-requests: write - uses: figuren-theater/.github/.github/workflows/ft-releases.yml@main - secrets: inherit # pass all secrets diff --git a/workflow-templates/release-drafter.properties.json b/workflow-templates/release-drafter.properties.json new file mode 100644 index 0000000..724708c --- /dev/null +++ b/workflow-templates/release-drafter.properties.json @@ -0,0 +1,8 @@ +{ + "name": "Draft or update the next release", + "description": "Drafts or updates the next release notes as pull requests are merged into main.", + "iconName": "ft-logo", + "categories": [ + "Continuous integration" + ] +} diff --git a/workflow-templates/release-drafter.yml b/workflow-templates/release-drafter.yml new file mode 100644 index 0000000..67ce5f6 --- /dev/null +++ b/workflow-templates/release-drafter.yml @@ -0,0 +1,12 @@ +name: Draft or update the next release + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - main + +jobs: + call-workflow-release-drafter: + uses: figuren-theater/.github/.github/workflows/release-drafter.yml@main + secrets: inherit diff --git a/workflow-templates/update-changelog.properties.json b/workflow-templates/update-changelog.properties.json new file mode 100644 index 0000000..040e026 --- /dev/null +++ b/workflow-templates/update-changelog.properties.json @@ -0,0 +1,8 @@ +{ + "name": "Update Changelog", + "description": "A GitHub Action to automatically update a \"Keep a Changelog\" CHANGELOG with the latest release notes.", + "iconName": "ft-logo", + "categories": [ + "Continuous integration" + ] +} diff --git a/workflow-templates/update-changelog.yml b/workflow-templates/update-changelog.yml new file mode 100644 index 0000000..f6ef8df --- /dev/null +++ b/workflow-templates/update-changelog.yml @@ -0,0 +1,11 @@ +name: 'Update Changelog' + +on: + release: + types: [released] + +jobs: + call-workflow-update-changelog: + uses: figuren-theater/.github/.github/workflows/update-changelog.yml@main + secrets: inherit +