forked from andychase/gbajs2
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: reuse workflows, add skippable jobs
- testing out reusable actions - testing out skippable jobs by path
- Loading branch information
Nick VanCise
authored and
Nick VanCise
committed
Dec 28, 2023
1 parent
2f5f48f
commit 0a47cad
Showing
5 changed files
with
67 additions
and
48 deletions.
There are no files selected for viewing
18 changes: 2 additions & 16 deletions
18
.github/workflows/admin.yml → .github/workflows/admin.workflow.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 2 additions & 16 deletions
18
.github/workflows/auth.yml → .github/workflows/auth.workflow.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 2 additions & 16 deletions
18
.github/workflows/gbajs3.yml → .github/workflows/gbajs3.workflow.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Protected | ||
|
||
on: | ||
push: | ||
branches: ['master'] | ||
pull_request: | ||
branches: ['master'] | ||
|
||
jobs: | ||
call-admin: | ||
uses: ./.github/workflows/admin.workflow.yml | ||
|
||
call-auth: | ||
uses: ./.github/workflows/auth.workflow.yml | ||
|
||
call-gbajs3: | ||
uses: ./.github/workflows/gbajs3.workflow.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Unprotected | ||
|
||
on: | ||
push: | ||
branches: ['!master'] | ||
pull_request: | ||
branches: ['!master'] | ||
|
||
jobs: | ||
change-detect: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
outputs: | ||
admin: ${{ steps.filter.outputs.admin }} | ||
auth: ${{ steps.filter.outputs.auth }} | ||
gbajs3: ${{ steps.filter.outputs.gbajs3 }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
admin: | ||
- 'docker/server/admin/**' | ||
auth: | ||
- 'docker/server/auth/**' | ||
gbajs3: | ||
- 'gbajs3/**' | ||
call-admin: | ||
needs: change-detect | ||
if: steps.filter.outputs.admin == 'true' | ||
uses: ./.github/workflows/admin.workflow.yml | ||
|
||
call-auth: | ||
needs: change-detect | ||
if: steps.filter.outputs.auth == 'true' | ||
uses: ./.github/workflows/auth.workflow.yml | ||
|
||
call-gbajs3: | ||
needs: change-detect | ||
if: steps.filter.outputs.gbajs3 == 'true' | ||
uses: ./.github/workflows/gbajs3.workflow.yml |