Skip to content

Commit

Permalink
tweaks: only on master, or PR to master; remove ad; fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed May 31, 2024
1 parent b0c5c55 commit f5c102d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/changelog_generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: GitHub_Changelog_Generator

on:
push:
branches: ["**"]
branches: ["master"]
pull_request:
branches: ["**"]
branches: ["master"]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
Expand Down Expand Up @@ -51,6 +51,9 @@ jobs:
- name: Append changelog from pre-GitHub times
run: |
cat ${{ github.workspace }}/src/pregh-changes.md >> ~/changelog_build/CHANGES.md
- name: Remove the inserted advert from the file
run: |
sed -i '/This Changelog was automatically generated by/d' ~/changelog_build/CHANGES.md
- name: Print out complete changelog
run: |
cat ~/changelog_build/CHANGES.md
Expand All @@ -70,6 +73,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: changelog_pre_lint
path: ~/changelog_build/CHANGES.md
- name: Set up Node
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -106,6 +110,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: changelog_post_lint
path: ~/changelog_build/CHANGES.md
- name: Changelog deployment
run: |
if (git log -1 --pretty=%s | grep Merge*) && (! git log -1 --pretty=%b | grep REL:) ; then
Expand Down

0 comments on commit f5c102d

Please sign in to comment.