-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manual release creation and Badge addition in README (#27)
- Loading branch information
1 parent
d703403
commit 0bbb676
Showing
3 changed files
with
61 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,27 @@ | ||
name: Post merge to main | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
first_test_job: | ||
name: Find extra commits | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- id: Fetch_tags | ||
run: git fetch --prune --unshallow --tags | ||
- run: git describe --tags | ||
- id: set_output_tags | ||
run: | | ||
echo ::set-output name=extra_commits::$(git describe --tags) | ||
- name: Set Badge | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: Version | ||
LABEL: 'Version' | ||
STATUS: ${{ steps.set_output_tags.outputs.extra_commits }} | ||
COLOR: CFC03A | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,32 @@ | ||
name: Manual release creation | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_name: | ||
description: "Release name" | ||
required: true | ||
|
||
jobs: | ||
release_badge: | ||
name: Create Release and Add Badge | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.event.inputs.release_name }} | ||
release_name: ${{ github.event.inputs.release_name }} | ||
body: ${{ github.event.head_commit.message }} | ||
- name: Set Badge | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: Version | ||
LABEL: 'Version' | ||
STATUS: ${{ github.event.inputs.release_name }} | ||
COLOR: 51B077 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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