Skip to content

Commit

Permalink
fix: update CI/CD process to align auto-release workflow configs (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored Nov 22, 2021
1 parent 4ee4574 commit 31d76f9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 21 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- main
Expand Down
20 changes: 1 addition & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
repos:
# - repo: local # @todo: move to pre-commit-terraform, add support for multiple module dirs, and run before terraform_docs
# hooks:
# - id: terraform_wrapper
# name: "Terraform module wrapper - root"
# entry: /Users/Bob/Sites/terraform-aws-modules/scripts/generate-terraform-wrappers.sh --overwrite
# language: system
# pass_filenames: false
# - id: terraform_wrapper
# name: "Terraform module wrapper - object"
# entry: /Users/Bob/Sites/terraform-aws-modules/scripts/generate-terraform-wrappers.sh --module-dir modules/object --overwrite
# language: system
# pass_filenames: false
# - id: terraform_wrapper
# name: "Terraform module wrapper - notification"
# entry: /Users/Bob/Sites/terraform-aws-modules/scripts/generate-terraform-wrappers.sh --module-dir modules/notification --overwrite
# language: system
# pass_filenames: false
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.55.0
rev: v1.58.0
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand All @@ -43,4 +26,3 @@ repos:
rev: v4.0.1
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
12 changes: 10 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
[
"@semantic-release/github",
{
"successComment":
"This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:",
"labels": false,
"releasedLabels": false
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file"
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file."
}
],
[
Expand Down

0 comments on commit 31d76f9

Please sign in to comment.