Skip to content

Commit

Permalink
chore: run checks on PR and bump version on merge AB#32464
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Jan 3, 2025
1 parent 0ed5a1f commit 96ef3a9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: 'Continuous Integration for IBF'
name: 'Run checks on pull request'

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

Expand Down Expand Up @@ -111,28 +109,3 @@ jobs:
uses: ./.github/actions/e2e
with:
mailchimp-api-key: ${{ secrets.MC_API }}

bump-version:
needs: [ibf-api-service, ibf-dashboard, ibf-integration, ibf-e2e]
if: |
github.event_name == 'push' &&
success()
runs-on: ubuntu-latest

steps:
- name: Wait for previous workflow to complete
uses: softprops/turnstyle@v2
with:
abort-after-seconds: 1800
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4

- name: Bump version and push tag
uses: TriPSs/conventional-changelog-action@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
git-message: 'chore(release): {version}'
release-count: 10
26 changes: 26 additions & 0 deletions .github/workflows/workflow-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Bump version and push tag on merge to master'

on:
push:
branches: [master]

jobs:
bump-version:
runs-on: ubuntu-latest

steps:
- name: Wait for previous workflow to complete
uses: softprops/turnstyle@v2
with:
abort-after-seconds: 1800
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4

- name: Bump version and push tag
uses: TriPSs/conventional-changelog-action@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
git-message: 'chore(release): {version}'
release-count: 10

0 comments on commit 96ef3a9

Please sign in to comment.