Skip to content

Commit 2d84259

Browse files
Merge pull request #7 from terraform-module/chore/tweek-non-functional-stuff
chore: remove issues templates. update release cycle
2 parents cf4406c + 817712a commit 2d84259

File tree

10 files changed

+60
-127
lines changed

10 files changed

+60
-127
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/Feature_request.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/Support_question.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/release-drafter.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
2+
_extends: .github

.github/stale.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configuration for https://github.com/probot/stale
2+
_extends: .github
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: release.draft
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
prerelease:
7+
description: Is this a pre-release
8+
required: true
9+
default: true
10+
publish:
11+
description: Publish release
12+
required: false
13+
default: false
14+
bump:
15+
description: 'Bumping (#major, #minor or #patch)'
16+
required: false
17+
default: patch
18+
19+
jobs:
20+
draft-a-release:
21+
runs-on: ubuntu-latest
22+
steps:
23+
24+
- uses: actions/checkout@v2
25+
26+
- name: check next version
27+
uses: anothrNick/[email protected]
28+
id: tag
29+
env:
30+
DRY_RUN: true
31+
WITH_V: true
32+
DEFAULT_BUMP: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.bump || 'patch' }}
33+
34+
- name: release-draft
35+
uses: release-drafter/[email protected]
36+
if: "!contains(github.event.head_commit.message, 'skip')"
37+
id: release
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
publish: ${{ github.event.inputs.publish }}
42+
prerelease: ${{ github.event.inputs.prerelease }}
43+
tag: ${{ steps.tag.outputs.new_tag }}
44+
45+
- name: check-version
46+
run: |
47+
echo "release it: ${{ github.event.inputs.prerelease }}"
48+
echo "out: ${{ steps.release.name }}"
49+
echo "tag: ${{ steps.release.outputs.tag_name }}"

.github/workflows/release.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Bump version
1+
name: release
22
on:
33
push:
44
branches:
@@ -7,18 +7,16 @@ on:
77
env:
88
WITH_V: true
99
DEFAULT_BUMP: patch
10-
INITIAL_VERSION: 0.12.0
11-
TERRAFORM_VERSION: 0.12
10+
INITIAL_VERSION: 0.13.0
11+
TERRAFORM_VERSION: 0.13
1212

1313
jobs:
1414
build:
1515
name: release new version
1616
runs-on: ubuntu-latest
17-
if: "!contains(github.event.head_commit.message, 'skip')"
17+
if: "contains(github.event.head_commit.message, 'release')"
1818
steps:
1919
- uses: actions/checkout@master
20-
with:
21-
fetch-depth: '1'
2220

2321
- name: register values
2422
id: register
@@ -35,15 +33,15 @@ jobs:
3533

3634
- name: create release
3735
id: create_release
38-
uses: actions/create-release@v1.0.1
36+
uses: actions/create-release@v1.1.2
3937
env:
4038
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4139
with:
4240
tag_name: ${{ steps.tag.outputs.tag }}
43-
release_name: release ${{ steps.register.outputs.release_timestamp}}
41+
release_name: release ${{ steps.tag.outputs.tag }} ${{ steps.register.outputs.release_timestamp}}
4442
draft: false
4543
prerelease: false
4644
body: |
47-
Changes in this Release ${{ steps.register.outputs.release_timestamp }}
45+
Changes in this Release ${{ steps.tag.outputs.tag }} ${{ steps.register.outputs.release_timestamp }}
4846
- ${{ steps.register.outputs.changelog }}
4947
- Terraform Version: ${{ env.TERRAFORM_VERSION }}

0 commit comments

Comments
 (0)