Skip to content

Commit

Permalink
workflows bugfix concurrency
Browse files Browse the repository at this point in the history
Workflows invoked one by one without queued workflows because GitHub
cancels them.
  • Loading branch information
silverqx committed Apr 21, 2024
1 parent eeed646 commit e675ee1
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/linux-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,9 @@ jobs:
# The reason for this is the concurrency:group: can contain only two in_progress workflows,
# one will be in_progress and the second will be queued (waiting until the first finish),
# and all others will be canceled.
- name: Run vcpkg-linux/-drivers.yml workflows
- name: Run vcpkg-linux.yml workflows
working-directory: ${{ env.TinyORMPath }}
run: |
gh workflow run vcpkg-linux.yml --ref ${{ github.ref_name }}
gh workflow run vcpkg-linux-drivers.yml --ref ${{ github.ref_name }}
env:
GH_TOKEN: ${{ github.token }}
4 changes: 2 additions & 2 deletions .github/workflows/msvc2022-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ jobs:
# The reason for this is the concurrency:group: can contain only two in_progress workflows,
# one will be in_progress and the second will be queued (waiting until the first finish),
# and all others will be canceled.
- name: Run msys2-ucrt64-drivers.yml workflows
- name: Run vcpkg-windows.yml workflows
working-directory: ${{ env.TinyORMPath }}
run: |
gh workflow run msys2-ucrt64-drivers.yml --ref ${{ github.ref_name }}
gh workflow run vcpkg-windows.yml --ref ${{ github.ref_name }}
env:
GH_TOKEN: ${{ github.token }}
10 changes: 10 additions & 0 deletions .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -562,3 +562,13 @@ jobs:
./HelloWorld
env:
TINYORM_HELLOWORLD_DB_SQLITE_DATABASE: ../../../HelloWorld.sqlite3

# The reason for this is the concurrency:group: can contain only two in_progress workflows,
# one will be in_progress and the second will be queued (waiting until the first finish),
# and all others will be canceled.
- name: Run vcpkg-linux-drivers.yml workflows
working-directory: ${{ env.TinyORMPath }}
run: |
gh workflow run vcpkg-linux-drivers.yml --ref ${{ github.ref_name }}
env:
GH_TOKEN: ${{ github.token }}
10 changes: 10 additions & 0 deletions .github/workflows/vcpkg-windows-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -470,3 +470,13 @@ jobs:
DB_MYSQL_SSL_KEY: ${{ secrets.DB_MYSQL_DATA_SELF_WINDOWS }}/client-key.pem
DB_MYSQL_SSL_MODE: ${{ secrets.DB_MYSQL_SSL_MODE }}
DB_MYSQL_USERNAME: ${{ secrets.DB_MYSQL_USERNAME_SELF }}

# The reason for this is the concurrency:group: can contain only two in_progress workflows,
# one will be in_progress and the second will be queued (waiting until the first finish),
# and all others will be canceled.
- name: Run msys2-ucrt64-drivers.yml workflows
working-directory: ${{ env.TinyORMPath }}
run: |
gh workflow run msys2-ucrt64-drivers.yml --ref ${{ github.ref_name }}
env:
GH_TOKEN: ${{ github.token }}
6 changes: 1 addition & 5 deletions .github/workflows/vcpkg-windows.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Vcpkg Windows

on:
workflow_dispatch:
push:
branches:
- main
on: workflow_dispatch

concurrency:
group: tinyorm-windows
Expand Down

0 comments on commit e675ee1

Please sign in to comment.