update version node in pipelines #195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |