Skip to content

action: atualizando changelog #180

action: atualizando changelog

action: atualizando changelog #180

Workflow file for this run

name: Changelog Automation
on:
workflow_dispatch:
push:
branches:
- main
- release/**
jobs:
update-changelog:
runs-on: ubuntu-latest
if: "startsWith(github.event.head_commit.message, 'Merge')"
steps:
- name: Checkout Github
uses: actions/checkout@v4.1.1
- name: Get Title PR
id: get_message
run: echo "::set-output name=MESSAGE::$(echo '${{github.event.head_commit.message}}' | tail -n 1)"
- name: Update Changelog
uses: ./
with:
changelog_new_log: ${{ steps.get_message.outputs.MESSAGE }}
log_find: '## Alterações'
env:
GITHUB_TOKEN: ${{secrets.TOKEN}}