Skip to content

Commit

Permalink
chore(ci): consistency and updates (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jan 18, 2024
1 parent 52318ee commit 119b0df
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/merge-main.yml → .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
name: semantic release
name: Merge

on:
push:
branches: [main]
paths-ignore:
- '*.md'
- '.github/**'
- 'charts/**'
- '!.github/workflows/merge.yml'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
Expand All @@ -10,8 +18,7 @@ jobs:
semantic-release:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Conventional Changelog Update
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Pull Request Closed
name: PR Closed

on:
pull_request:
branches:
- main
types:
- closed
types: [closed]
paths-ignore:
- '*.md'
- '.github/**'
- 'charts/**'

concurrency:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Build and Deploy of Job on Pull Request to Main
name: PR

on:
pull_request:
branches:
- main
paths-ignore:
- 'charts/**'
merge_group:

concurrency:
# PR open and close use the same group, allowing only one at a time
group: pr-${{ github.workflow }}-${{ github.event.number }}
# Cancel in progress for PR open and close, but not merge_group
group: ${{ github.workflow }}-${{ github.event.number || github.event.merge_group.base_sha }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -43,6 +40,7 @@ jobs:
build_file: ${{ matrix.build_file }}
build_context: ${{ matrix.build_context }}
triggers: ${{ matrix.triggers }}

- uses: shrink/actions-docker-registry-tag@v3
with:
registry: ghcr.io
Expand Down

0 comments on commit 119b0df

Please sign in to comment.