File tree Expand file tree Collapse file tree
shared-actions/create-release Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Devops Common v0.0.1
2+
3+ ## Changes
4+
5+ - Initial release
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments