mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
24 lines
641 B
YAML
24 lines
641 B
YAML
name: ci
|
|
on: pull_request
|
|
|
|
jobs:
|
|
get-diff:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
diff: ${{ steps.diff.outputs.diff }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: technote-space/get-diff-action@v6
|
|
id: diff
|
|
with:
|
|
PATTERNS: projects/**/package.yml
|
|
build:
|
|
needs: [get-diff]
|
|
uses: ./.github/workflows/build.yml
|
|
with:
|
|
projects: ${{ needs.get-diff.outputs.diff }}
|
|
# Don't use GITHUB_SHA for PRs: https://github.com/orgs/community/discussions/25191
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
secrets: inherit
|
|
if: ${{ needs.get-diff.outputs.diff != '' }}
|