Skip to content

Commit

Permalink
Simplify CI & review concurrency (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilas committed Jun 22, 2023
1 parent 3810e11 commit 691e5f6
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 32 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:

jobs:
update:
concurrency: ${{ inputs.test && github.run_id || 'update' }}

name: Update ${{ github.workflow }}
runs-on: windows-latest
timeout-minutes: 20
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/airserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 5 0-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","5 0-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/eclipse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 15 0-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","15 0-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hashcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 25 0-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","25 0-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ilspy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 35 0-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","35 0-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/imdisk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 45 0-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","45 0-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kodi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 55 0-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","55 0-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lavfilters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 5 1-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","5 1-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/marble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 15 1-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","15 1-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/procexp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 25 1-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","25 1-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/procmon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 35 1-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","35 1-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sabnzbd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 45 1-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","45 1-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/serviio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 55 1-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","55 1-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stellarium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 5 2-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","5 2-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/strawberryperl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 15 2-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","15 2-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/subtitleedit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 25 2-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -37,7 +37,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","25 2-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
test: ${{ github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *' || inputs.type == 'Test' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vscodium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- update_vars.ps1
schedule:
- cron: 0 4 * * * # Scheduled test
- cron: 35 2-23/6 * * * # Scheduled update
- cron: 5 */6 * * * # Scheduled update
workflow_dispatch: # Manual run
inputs:
type:
Expand All @@ -39,7 +39,7 @@ on:

jobs:
job:
name: ${{ fromJSON(format('{{"pull_request":"Test","push":"Update","schedule":"{0}","workflow_dispatch":"{1}"}}', fromJSON('{"0 4 * * *":"Test","35 2-23/6 * * *":"Update"}')[github.event.schedule], inputs.type))[github.event_name] }}
name: ${{ inputs.type || (github.event_name == 'pull_request' || github.event.schedule == '0 4 * * *') && 'Test' || 'Update' }}
uses: ./.github/workflows/.common.yml
with:
packages: vscodium, vscodium.install, vscodium.portable
Expand Down

0 comments on commit 691e5f6

Please sign in to comment.