mirror of
https://git.flexiblyrigid.au/actions/bake-action.git
synced 2025-12-06 15:58:07 +08:00
list-targets subaction
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
61
.github/workflows/ci-subaction.yml
vendored
Normal file
61
.github/workflows/ci-subaction.yml
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
name: ci-subaction
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 10 * * *'
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'releases/v*'
|
||||
tags:
|
||||
- 'v*'
|
||||
paths:
|
||||
- '.github/workflows/ci-subaction.yml'
|
||||
- 'subaction/**'
|
||||
- 'test/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/ci-subaction.yml'
|
||||
- 'subaction/**'
|
||||
- 'test/**'
|
||||
|
||||
jobs:
|
||||
list-targets-group:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
-
|
||||
name: Matrix gen
|
||||
id: gen
|
||||
uses: ./subaction/list-targets
|
||||
with:
|
||||
workdir: ./test/group
|
||||
-
|
||||
name: Show matrix
|
||||
run: |
|
||||
echo matrix=${{ steps.gen.outputs.matrix }}
|
||||
|
||||
list-targets-group-matrix:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
-
|
||||
name: Matrix gen
|
||||
id: gen
|
||||
uses: ./subaction/list-targets
|
||||
with:
|
||||
workdir: ./test/group-matrix
|
||||
target: validate
|
||||
-
|
||||
name: Show matrix
|
||||
run: |
|
||||
echo matrix=${{ steps.gen.outputs.matrix }}
|
||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -23,7 +23,13 @@ on:
|
||||
- 'releases/v*'
|
||||
tags:
|
||||
- 'v*'
|
||||
paths-ignore:
|
||||
- '.github/workflows/ci-subaction.yml'
|
||||
- 'subaction/**'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '.github/workflows/ci-subaction.yml'
|
||||
- 'subaction/**'
|
||||
|
||||
env:
|
||||
BUILDX_VERSION: latest
|
||||
|
||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -9,7 +9,13 @@ on:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'releases/v*'
|
||||
paths-ignore:
|
||||
- '.github/workflows/ci-subaction.yml'
|
||||
- 'subaction/**'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '.github/workflows/ci-subaction.yml'
|
||||
- 'subaction/**'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
6
.github/workflows/validate.yml
vendored
6
.github/workflows/validate.yml
vendored
@@ -9,7 +9,13 @@ on:
|
||||
branches:
|
||||
- 'master'
|
||||
- 'releases/v*'
|
||||
paths-ignore:
|
||||
- '.github/workflows/ci-subaction.yml'
|
||||
- 'subaction/**'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '.github/workflows/ci-subaction.yml'
|
||||
- 'subaction/**'
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
|
||||
Reference in New Issue
Block a user