| 1 | name: Call reusable |
| 2 | on: |
| 3 | push: |
| 4 | branches: [main] |
| 5 | jobs: |
| 6 | call-local: |
| 7 | uses: ./.github/workflows/reusable-called.yml |
| 8 | with: |
| 9 | config-path: .github/labeler.yml |
| 10 | debug: true |
| 11 | secrets: |
| 12 | token: ${{ secrets.PUBLISH_TOKEN }} |
| 13 | call-remote: |
| 14 | needs: call-local |
| 15 | if: ${{ always() }} |
| 16 | uses: octo-org/example-repo/.github/workflows/reusable.yml@v1 |
| 17 | secrets: inherit |
| 18 | permissions: |
| 19 | contents: read |
| 20 | strategy: |
| 21 | matrix: |
| 22 | target: [dev, stage] |
| 23 | concurrency: |
| 24 | group: remote-${{ matrix.target }} |
| 25 | report: |
| 26 | needs: [call-local] |
| 27 | runs-on: ubuntu-latest |
| 28 | steps: |
| 29 | - run: echo "${{ needs.call-local.outputs.artifact }}" |