Skip to content

Commit

Permalink
reduced amount of dependent builds
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Mar 25, 2021
1 parent e0b5a40 commit 839b353
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/dependent-repositories.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"include" : [
{ "repository" : "OpenPonk/all-in-one" }
{ "repository" : "OpenPonk/all-in-one", "build-dependent" : true }
]
}
7 changes: 7 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Nightly

on:
workflow_dispatch:
inputs:
build-dependent:
description: 'Should build dependent repositories? (true/false)'
required: false
default: false
push:
branches:
- 'master'
Expand Down Expand Up @@ -174,6 +179,7 @@ jobs:
create-dependent-matrix:
runs-on: ubuntu-latest
name: 'Find dependent repositories'
if: ${{ github.event_name == 'push' || contains(github.event.inputs.build-dependent || false, 'true') }}
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand All @@ -200,3 +206,4 @@ jobs:
workflow: Nightly
repo: ${{ matrix.repository }}
token: ${{ secrets.WORKFLOW_ACCESS_TOKEN }}
inputs: '{ "build-dependent": "${{ matrix.build-dependent }}" }'

0 comments on commit 839b353

Please sign in to comment.