Skip to content

Commit ac71b20

Browse files
authored
Merge pull request #15 from sourcefuse/GH-14
Added workflow for github-release
2 parents daf26d2 + c72590f commit ac71b20

File tree

8 files changed

+38
-26
lines changed

8 files changed

+38
-26
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ If applicable, add screenshots to help explain your problem.
3535
- Version [e.g. 22]
3636

3737
**Additional context**
38-
Add any other context about the problem here.
38+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ A clear and concise description of what you want to happen.
1717
A clear and concise description of any alternative solutions or features you've considered.
1818

1919
**Additional context**
20-
Add any other context or screenshots about the feature request here.
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ Include any relevant screenshots or visual aids to help reviewers understand the
3636

3737
## Additional Notes
3838

39-
Add any additional notes or context that might be helpful for reviewers or users testing the changes.
39+
Add any additional notes or context that might be helpful for reviewers or users testing the changes.

.github/workflows/tag-release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bump version
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Bump version and push tag
13+
id: tag
14+
uses: anothrNick/github-tag-action@master
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
DEFAULT_BUMP: patch
18+
REPO_OWNER: sourcefuse
19+
- name: Create Release
20+
id: create_release
21+
uses: actions/create-release@v1.1.4
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
tag_name: ${{ steps.tag.outputs.tag }}
26+
release_name: v${{ steps.tag.outputs.tag }}
27+
body: ${{ github.release_notes }}
28+
draft: false
29+
prerelease: false

.github/workflows/tag.yml

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

example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
| Name | Source | Version |
2020
|------|--------|---------|
21-
| <a name="module_example_doc_db_cluster"></a> [example\_doc\_db\_cluster](#module\_example\_doc\_db\_cluster) | sourcefuse/arc-document-db/aws | n/a |
21+
| <a name="module_doc_db_cluster"></a> [doc\_db\_cluster](#module\_doc\_db\_cluster) | sourcefuse/arc-document-db/aws | n/a |
2222
| <a name="module_tags"></a> [tags](#module\_tags) | sourcefuse/arc-tags/aws | 1.2.3 |
2323

2424
## Resources

example/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ provider "aws" {
2424
region = var.region
2525
}
2626

27-
module "example_doc_db_cluster" {
27+
module "doc_db_cluster" {
2828
source = "sourcefuse/arc-document-db/aws"
2929
// we recommend to pin the version we aren't simply for an example reference against our latest changes.
3030
namespace = var.namespace

example/outputs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
output "example_cluster_name" {
22
description = "DocumentDB Cluster Identifier"
3-
value = module.example_doc_db_cluster.cluster_name
3+
value = module.doc_db_cluster.cluster_name
44
}
55

66
output "example_arn" {
77
description = "Amazon Resource Name (ARN) of the DocumentDB cluster"
8-
value = module.example_doc_db_cluster.arn
8+
value = module.doc_db_cluster.arn
99
}
1010

1111
output "example_endpoint" {
1212
description = "Endpoint of the DocumentDB cluster"
13-
value = module.example_doc_db_cluster.endpoint
13+
value = module.doc_db_cluster.endpoint
1414
}
1515

1616
output "example_reader_endpoint" {
1717
description = "Read-only endpoint of the DocumentDB cluster, automatically load-balanced across replicas"
18-
value = module.example_doc_db_cluster.reader_endpoint
18+
value = module.doc_db_cluster.reader_endpoint
1919
}

0 commit comments

Comments
 (0)