Skip to content

fix(ci): condition on changelog and on create tag #16

fix(ci): condition on changelog and on create tag

fix(ci): condition on changelog and on create tag #16

Workflow file for this run

#Generate a new tag and changelog
name: "Proto version"
on:
pull_request:
branches:
- main
types: [closed]
permissions:
contents: write
jobs:
changelog-and-tag:
if: ${{!contains(github.head_ref, 'changelog')}}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-tags: 'true'
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install dependencies
run: go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest
- name: Building new version
run: |
git config user.name github-actions
git config user.email github-actions@github.com
make changelog