mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-24 19:32:48 +00:00
44 lines
No EOL
1.1 KiB
YAML
44 lines
No EOL
1.1 KiB
YAML
name: Caller-1
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/reusable-1.yml
|
|
- .github/workflows/caller-1.yml
|
|
branches:
|
|
- main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#trigger pipeline
|
|
jobs:
|
|
call-reusable-workflow-1-in-local-repo:
|
|
uses: ./.github/workflows/reusable-1.yml
|
|
with:
|
|
config-path: '.github/labeler.yml' # Provide the required input
|
|
secrets:
|
|
token: ${{ secrets.GITHUB_TOKEN }} # Provide the required secret
|
|
|
|
second-caller:
|
|
uses: Piasecki-grid/test-workflows/.github/workflows/reusable-2.yml@main
|
|
with:
|
|
config-path: '.github/labeler.yml' # Provide the required input
|
|
secrets:
|
|
token: ${{ secrets.GITHUB_TOKEN }} # Provide the required secret
|
|
|
|
run-composite-action:
|
|
runs-on: ubuntu-latest
|
|
needs: second-caller # Optional: make it run after the reusable workflow
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Use Composite Action
|
|
uses: Piasecki-grid/test-workflows/actions/my-composite@main
|
|
with:
|
|
greeting: 'Hi there'
|
|
name: 'GitHub Actions User'
|
|
|