Skip to content

Commit 0630139

Browse files
committed
feat: release 0.0.1
1 parent f95bd5c commit 0630139

5 files changed

Lines changed: 46 additions & 2 deletions

File tree

.github/release/v0.0.1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Devops Common v0.0.1
2+
3+
## Changes
4+
5+
- Initial release

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install linters
1818
run: |
1919
pip install --upgrade pip
20-
pip install pre-commit
20+
pip install pre-commit==3.5.0
2121
2222
- name: Run linters
2323
run: pre-commit run --all-files

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release Go Module
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
paths-ignore:
8+
- "README.md"
9+
- "docs/**"
10+
- ".gitignore"
11+
- "LICENSE"
12+
- ".github/**"
13+
14+
permissions:
15+
contents: write
16+
pull-requests: read
17+
18+
jobs:
19+
release:
20+
runs-on: ubuntu-latest
21+
if: ${{ !contains(github.event.head_commit.message, '[skip release]') }}
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Checkout repository
28+
uses: ./shared-actions/create-release
29+
with:
30+
spec-file: specs.json
31+
git-token: ${{ secrets.GITHUB_TOKEN }}
32+
release-notes-dir: .github/release

shared-actions/create-release/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ runs:
105105
PREVIOUS_TAG="${{ steps.previous_tag.outputs.tag }}"
106106
107107
# Get description from ${{ inputs.spec-file }} if available
108-
CHANGELOG=$(cat ".github/release/${SPEC_VERSION}.md")
108+
CHANGELOG=$(cat "${{ inputs.release-notes-dir }}/${SPEC_VERSION}.md")
109109
110110
if [ "$PREVIOUS_TAG" = "v0.0.0" ]; then
111111
COMMITS=$(git log --pretty=format:"- %s (%h)" HEAD)

specs.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"author": "Joaquin Gabriel Franco",
3+
"version": "0.0.1",
4+
"repository": "https://github.com/jgfranco17/devops-common",
5+
"languages": ["Go"],
6+
"active": true
7+
}

0 commit comments

Comments
 (0)