Skip to content

Commit

Permalink
fix(config): passes branch to workflow.release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Oct 30, 2024
1 parent bcb0554 commit 24d31e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ jobs:
needs: document
uses: kurocado-studio/styleguide/.github/workflows/workflow.release.yml@main
secrets: inherit
with:
branch: ${{ github.ref }}
16 changes: 10 additions & 6 deletions .github/workflows/workflow.release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ inputs.branch }}
cancel-in-progress: true

permissions:
Expand All @@ -9,17 +9,21 @@ permissions:

on:
workflow_call:
inputs:
branch:
required: true
type: string

jobs:
release:
runs-on: ubuntu-latest
if: |
(
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/alpha' ||
github.ref == 'refs/heads/beta' ||
github.ref == 'refs/heads/canary' ||
github.ref == 'refs/heads/pre/rc'
inputs.branch == 'refs/heads/main' ||
inputs.branch == 'refs/heads/alpha' ||
inputs.branch == 'refs/heads/beta' ||
inputs.branch == 'refs/heads/canary' ||
inputs.branch == 'refs/heads/pre/rc'
)
steps:
- name: Checkout
Expand Down

0 comments on commit 24d31e2

Please sign in to comment.