Skip to content

Update build.yml

Update build.yml #46

name: Add to changelog
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 1000
fetch-tags: true
- name: Append changelog file
if: contains(github.event.head_commit.message, '[CHANGE]')
uses: DamianReeves/write-file-action@master
with:
path: changelog-1.21.txt
write-mode: append
contents: |
- ${{ github.event.head_commit.message }} ${{ github.event.repository.updated_at}}
- name: Commit & Push
uses: Andro999b/push@v1.3
with:
if: contains(github.event.head_commit.message, '[CHANGE]')
github_token: ${{ secrets.GIT_TOKEN}}
branch: ${{ github.ref }}
force: true