Skip to content

Commit

Permalink
Use release-drafter to draft release notes (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru authored Dec 14, 2020
1 parent 5f43604 commit 19beec2
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 2 deletions.
61 changes: 61 additions & 0 deletions .github/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
version-template: '$MAJOR.$MINOR.$PATCH'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
- 'enhancement'
patch:
labels:
- 'auto-update'
- 'patch'
- 'fix'
- 'bugfix'
- 'bug'
- 'hotfix'
default: 'minor'

categories:
- title: '🚀 Enhancements'
labels:
- 'enhancement'
- 'patch'
- 'shell'
- 'scripts'
- 'terraform'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- 'hotfix'
- title: '🤖 Included Tools'
labels:
- 'auto-update'
- 'packages'
- 'docker'
- title: '🤖 Included Tools'
labels:
- 'auto-update'
- 'packages'
- 'docker'
- title '📚️ Documentation'
labels:
- 'docs'
- title '🏗️ Build/Release Maintenance'
labels:
- 'github'

change-template: |
<details>
<summary>$TITLE @$AUTHOR (#$NUMBER)</summary>
$BODY
</details>
template: |
$CHANGES
19 changes: 19 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: draft-release

on:
push:
branches:
- master

jobs:
semver:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
with:
publish: false
prerelease: false
config-name: draft-release.yml
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion rootfs/etc/profile.d/aws-okta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ "${AWS_OKTA_ENABLED}" == "true" ]; then

PROMPT_HOOKS+=("aws_okta_prompt")
function aws_okta_prompt() {
if [ -z "${AWS_OKTA_PROFILE}" ]; then
if [[ -z "${AWS_OKTA_PROFILE}" && -z "${ASSUME_ROLE}" ]]; then
echo -e "-> Run '$(green assume-role)' to login to AWS with aws-okta"
fi
}
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/profile.d/aws-vault.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ if [ "${AWS_VAULT_ENABLED:-true}" == "true" ]; then

PROMPT_HOOKS+=("aws_vault_prompt")
function aws_vault_prompt() {
if [ -z "${AWS_VAULT}" ]; then
if [[ -z "${AWS_VAULT}" && -z "${ASSUME_ROLE}" ]]; then
echo -e "-> Run '$(green assume-role)' to login to AWS with aws-vault"
fi
}
Expand Down

0 comments on commit 19beec2

Please sign in to comment.