[Workflow] Add stale action to workflows (#1860)
[platform/core/csapi/tizenfx.git] / .github / workflows / pull_request.yaml
1 name: Pull Request
2
3 on:
4   pull_request:
5     branches:
6     - master
7     - API*
8
9 jobs:
10   build:
11     runs-on: ubuntu-latest
12     steps:
13     - uses: actions/checkout@v2
14
15     - name: Setup .NET Core
16       uses: actions/setup-dotnet@v1
17       with:
18         dotnet-version: 3.1.x
19
20     - uses: lots0logs/gh-action-get-changed-files@2.1.4
21       id: getChangedFiles
22       with:
23         token: ${{ secrets.GITHUB_TOKEN }}
24
25     - name: Build
26       id: build
27       uses: TizenAPI/tizenfx-build-actions/problem-filter@v1
28       with:
29         run: ./build.sh full /p:BuildWithAnalyzer=True
30         files: ${{ steps.getChangedFiles.outputs.all }}