-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc21d3c
commit b44cd15
Showing
3 changed files
with
118 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Create Release | ||
on: | ||
workflow_call: | ||
inputs: | ||
milestone: | ||
description: The milestone to tag | ||
required: true | ||
type: string | ||
description: | ||
description: Additional information to add above the changelog in the release | ||
default: "" | ||
required: false | ||
type: string | ||
branch: | ||
description: The branch to tag the release on | ||
default: "" | ||
required: false | ||
type: string | ||
labels: | ||
description: The labels to for the sections of the changelog | ||
default: "Bug 🐞,Dependencies 📦,Feature 🏗,Enhancement ✨" | ||
required: false | ||
type: string | ||
jobs: | ||
generate-changelog: | ||
name: Generate Changelog | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changelog: ${{ steps.changelog.outputs.changelog }} | ||
steps: | ||
- name: Generate changelog | ||
uses: WyriHaximus/github-action-jwage-changelog-generator@v1 | ||
id: changelog | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
milestone: ${{ inputs.milestone }} | ||
labels: ${{ inputs.labels }} | ||
- name: Show changelog | ||
run: echo "${CHANGELOG}" | ||
env: | ||
CHANGELOG: ${{ steps.changelog.outputs.changelog }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Gather Repository information | ||
on: | ||
workflow_call: | ||
jobs: | ||
repository-information: | ||
name: Gather Repository information | ||
runs-on: ubuntu-latest | ||
outputs: | ||
type: ${{ steps.repository-information.outputs.type }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DamianReeves/write-file-action@master | ||
id: repository-information | ||
with: | ||
path: /tmp/repository-information.php | ||
contents: | | ||
<?php | ||
$type = 'action-docker'; | ||
echo $type, PHP_EOL; | ||
file_put_contents(getenv('GITHUB_OUTPUT'), 'type=action-docker' . "\n", FILE_APPEND); | ||
write-mode: append | ||
- run: php /tmp/repository-information.php | ||
- run: rm /tmp/repository-information.php |