dev-python/conda-libmamba-solver: bump version to 24.11.1
[gentoo-zh.git] / .github / workflows / build-on-pr.yml
blobe655304d7beedda09dfa1882076e82601441d55b
1 name: build-on-pr
3 on:
4   pull_request_target:
5     branches:
6       - master
7     paths-ignore:
8       - '.github/**'
9       - 'metadata/**'
10     types: [opened, reopened, synchronize]
11   workflow_dispatch:
13 jobs:
14   build:
15     runs-on: ubuntu-latest
17     steps:
18     - name: pull request
19       uses: actions/checkout@v4
20       with:
21         fetch-depth: 0
22         repository: ${{ github.event.pull_request.head.repo.full_name }}
23         ref: ${{ github.event.pull_request.head.sha }}
25     - name: packages
26       id: packages
27       run: |
28         packages=$(   git diff --diff-filter="ACMR" --name-only ${{ github.event.pull_request.base.sha }} \
29                     | grep -E '.*\/.*\/.*\.ebuild$' \
30                     | xargs -I{} dirname {} | sort | uniq | tr '\n' ' ' )
31         echo "::set-output name=packages::$packages"
32         echo "emerge $packages"
34     - name: docker
35       uses: liangyongxiang/emerge-action@v0.1
36       with:
37         packages: "${{ steps.packages.outputs.packages }}"