Skip to content

Commit

Permalink
fix(ci): updates deploy workflow (#87)
Browse files Browse the repository at this point in the history
* fix(ci): updates deploy workflow

* fix(ci): provides workflow concurrency
  • Loading branch information
csantiago132 authored Jan 2, 2025
1 parent 856db55 commit 66d4ba0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/workflow.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@
# Explore our open-source projects: {@link https://github.com/kurocado-studio}
#
on:
push:
branches:
- dev
- main
workflow_call:
secrets:
fly_api_token:
required: true

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

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
on:
workflow_call:

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

permissions:
contents: write
pages: write
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
on:
workflow_call:

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

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ permissions:
contents: write
id-token: write

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

on:
workflow_call:
inputs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
on:
workflow_call:

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

jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 66d4ba0

Please sign in to comment.