Skip to content

Commit

Permalink
dbeaver/dbeaver-devops#1525 fix: concurrency group (#44)
Browse files Browse the repository at this point in the history
* dbeaver/dbeaver-devops#1525 add mvn args param for workflow

* dbeaver/dbeaver-devops#1525 add mvn args param for workflow

* dbeaver/dbeaver-devops#1525 add mvn args param for workflow

* dbeaver/dbeaver-devops#1525 fix: concurrency group
  • Loading branch information
Wroud authored Oct 16, 2024
1 parent 7e73ae3 commit 4092dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/java-checkstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ on:
workflow_call:

concurrency:
group: |
# For pull requests, group by the pull request ID
${{ github.event_name == 'pull_request' && format('pr-{0}-java-checkstyle', github.event.pull_request.number) }}
# For pushes to main, group by the branch name (e.g., 'main')
${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'main-branch-java-checkstyle' }}
group: ${{ github.event_name == 'pull_request' && format('pr-{0}-java-checkstyle', github.event.pull_request.number) || (github.event_name == 'push' && github.ref == 'refs/heads/main' && 'main-branch-java-checkstyle') || 'java-checkstyle' }}
cancel-in-progress: true
jobs:
lint:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/mvn-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ on:
required: false

concurrency:
group: |
# For pull requests, group by the pull request ID
${{ github.event_name == 'pull_request' && format('pr-{0}-mvn-package', github.event.pull_request.number) }}
# For pushes to main, group by the branch name (e.g., 'main')
${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'main-branch-mvn-package' }}
group: ${{ github.event_name == 'pull_request' && format('pr-{0}-mvn-package', github.event.pull_request.number) || (github.event_name == 'push' && github.ref == 'refs/heads/main' && 'main-branch-mvn-package') || 'mvn-package' }}
cancel-in-progress: true

jobs:
Expand Down

0 comments on commit 4092dbb

Please sign in to comment.