Skip to content

Commit

Permalink
chore(ci): updates CI/CD pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Jan 2, 2025
1 parent 251ecdc commit 8b9e821
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
uses: kurocado-studio/styleguide/.github/workflows/workflow.release.yml@main
secrets: inherit
with:
branch_name: ${{ github.ref }}
branch_name: ${{ github.ref_name }}
8 changes: 6 additions & 2 deletions .github/workflows/workflow.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#
on:
workflow_call:
inputs:
branch_name:
required: true
type: string
secrets:
fly_api_token:
required: true
Expand All @@ -16,8 +20,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
if: |
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/dev'
inputs.branch_name == 'main' ||
inputs.branch_name == 'dev'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow.document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
if: |
github.event_name == 'push' &&
github.ref == 'refs/heads/main'
github.ref_name == 'main'
outputs:
writerside_changed: ${{ steps.check.outputs.writerside_changed }}
steps:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/workflow.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
runs-on: ubuntu-latest
if: |
(
inputs.branch_name == 'refs/heads/main' ||
inputs.branch_name == 'refs/heads/alpha' ||
inputs.branch_name == 'refs/heads/beta' ||
inputs.branch_name == 'refs/heads/canary' ||
inputs.branch_name == 'refs/heads/pre/rc'
inputs.branch_name == 'main' ||
inputs.branch_name == 'alpha' ||
inputs.branch_name == 'beta' ||
inputs.branch_name == 'canary' ||
inputs.branch_name == 'pre/rc'
)
steps:
- name: Checkout
Expand Down

0 comments on commit 8b9e821

Please sign in to comment.