Skip to content

Commit

Permalink
do not build changelog for PRs to master
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Jun 1, 2024
1 parent be50185 commit 70d7750
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/changelog_generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,22 @@
name: GitHub_Changelog_Generator

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

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
github_changelog_generator:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ["3.2"]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
ruby-version: '3.2'
- name: Install dependencies
run: |
gem install github_changelog_generator
Expand Down Expand Up @@ -111,7 +105,6 @@ jobs:
# added or changed files to the repository.
contents: write
needs: lint_generated_changelog
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 70d7750

Please sign in to comment.