-
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Draft Release Creator with Date & Others
- Loading branch information
1 parent
eff9b94
commit 5e0212a
Showing
5 changed files
with
94 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,11 @@ | ||
# Add 'beta' label to any PR where the base branch name starts with `beta` or has a `beta` section in the name | ||
beta: | ||
- base-branch: ['^beta', 'beta', 'beta*'] | ||
|
||
# Add 'beta' label to any PR where the base branch name starts with `beta` or has a `beta` section in the name | ||
alpha: | ||
- base-branch: ['^alpha', 'alpha', 'alpha*'] | ||
|
||
# Add 'latest' label to any PR where the base branch name starts with `latest` or has a `latest` section in the name | ||
latest: | ||
- base-branch: ['^latest', 'latest', 'latest*'] |
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,21 @@ | ||
# The GitHub release configuration file: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes | ||
|
||
changelog: | ||
categories: | ||
- title: Breaking Changes 🛠 | ||
labels: | ||
- 'breaking change' | ||
- title: Featured Changes ✨ | ||
labels: | ||
- 'feature' | ||
- 'enhancement' | ||
- title: Bug Fixes 🐛 | ||
labels: | ||
- 'fix' | ||
- 'bugfix' | ||
- 'bug' | ||
- title: Other Changes | ||
labels: | ||
- "chore" | ||
- "housekeeping" | ||
- "*" |
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,12 @@ | ||
name: Labeler | ||
|
||
on: | ||
pull_request_target: # required for auto labeler | ||
types: [opened, reopened, synchronize] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
uses: homebridge/.github/.github/workflows/labeler.yml@latest | ||
secrets: | ||
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,12 @@ | ||
name: PR Labeler | ||
|
||
on: | ||
pull_request: # required for auto labeler | ||
types: [opened, reopened, synchronize] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
uses: homebridge/.github/.github/workflows/pr-labeler.yml@latest | ||
secrets: | ||
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,38 @@ | ||
name: Create Draft Release | ||
|
||
on: | ||
push: | ||
branches: [latest] | ||
pull_request: # required for autolabeler | ||
branches: [latest] | ||
types: [opened, reopened, synchronize, ready_for_review, review_requested] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Get current date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ steps.date.outputs.date }} | ||
release_name: ${{ steps.date.outputs.date }} | ||
body: | | ||
Homebridge Apt Package Manifest | ||
| Package | Version | | ||
|:-------:|:-------:| | ||
|NodeJS| v*.*.* | | ||
|Homebridge-Config-UI-X| *.*.* | | ||
|Homebridge| *.*.* | | ||
draft: true | ||
prerelease: false |