-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from rdohms/task/new-workflows
New Milestone Managment GHA
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 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,38 @@ | ||
name: Releases | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Pick Release Version from git tag | ||
id: version | ||
run: | | ||
echo "::set-output name=version::${GITHUB_REF#refs/*/}" | ||
- name: Debug Release Version | ||
run: echo "Extracted this version ${{ steps.version.outputs.version }}" | ||
- name: Pick Changelog from git tag | ||
id: changelog | ||
run: | | ||
OUTPUT=$(git tag -l --format='%(contents:body)' ${GITHUB_REF#refs/*/}) | ||
OUTPUT="${OUTPUT//'%'/'%25'}" | ||
OUTPUT="${OUTPUT//$'\n'/'%0A'}" | ||
OUTPUT="${OUTPUT//$'\r'/'%0D'}" | ||
echo "::set-output name=body::$OUTPUT" | ||
- name: Debug Changelog | ||
run: echo "Extracted this Changelog \n ${{ steps.changelog.outputs.body }}" | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
body: ${{ steps.changelog.outputs.body }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: ${{ steps.version.outputs.version }} | ||
tag: ${{ steps.version.outputs.version }} | ||
allowUpdates: true |
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,14 @@ | ||
name: 'Update Milestone on Release' | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
update-milestone-on-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Update Milestone on Release' | ||
uses: mhutchie/update-milestone-on-release@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |