Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/lock.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/pr-title.yml

This file was deleted.

99 changes: 0 additions & 99 deletions .github/workflows/pre-commit.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/release.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

on:
push:
branches:
- main
# https://medium.com/@le_moment_it/tags-releases-automation-77678047c79e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI_COMMIT_MESSAGE: CI Automatic push on develop
CI_COMMIT_AUTHOR: ci@users.noreply.github.com

jobs:
semantic_version:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: CiscoOpsStack/checkout@v4.1.1
with:
fetch-depth: 0
name: Bump version

- name: Perform semantic version
uses: CiscoOpsStack/semantic-version@v5.4.0
id: semantic_version
with:
tag_prefix: "v"
major_pattern: "(MAJOR)"
minor_pattern: "(MINOR)"
version_format: "${major}.${minor}.${patch}"
user_format_type: "csv"
bump_each_commit: false
search_commit_body: true

- name: Bump version and push tag
id: tag_version
uses: CiscoOpsStack/github-tag-pr-action@v1.67.0 # Don't use @master or @v1 unless you're happy to test the latest version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
WITH_V: true
RELEASE_BRANCHES: main
CUSTOM_TAG: ${{ steps.semantic_version.outputs.version_tag }}

- name: "Build Changelog"
id: build_changelog
uses: CiscoOpsStack/release-changelog-builder-action@v4
with:
fromTag: v${{ steps.semantic_version.outputs.previous_version }}
toTag: ${{ steps.tag_version.outputs.new_tag }}

- name: Create production release
uses: CiscoOpsStack/release-action@v1.14.0
id: release
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.semantic_version.outputs.version_tag }}
body: ${{ steps.build_changelog.outputs.changelog }}
draft: false
prerelease: false
commit: ${{ steps.semantic_version.outputs.current_commit }}
32 changes: 0 additions & 32 deletions .github/workflows/stale-actions.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
**/.terraform/*

# Terraform lockfile
.terraform.lock.hcl
#.terraform.lock.hcl

# .tfstate files
*.tfstate
Expand Down
27 changes: 27 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.