diff options
Diffstat (limited to '.github/workflows/check-pr.yml')
-rw-r--r-- | .github/workflows/check-pr.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml new file mode 100644 index 0000000..b7f37cd --- /dev/null +++ b/.github/workflows/check-pr.yml | |||
@@ -0,0 +1,24 @@ | |||
1 | name: Checks | ||
2 | |||
3 | on: | ||
4 | # PRs only on main branch | ||
5 | pull_request: | ||
6 | branches: [main] | ||
7 | |||
8 | jobs: | ||
9 | check: | ||
10 | name: Check Recipe Version Bump | ||
11 | runs-on: ubuntu-20.04 | ||
12 | steps: | ||
13 | - name: Checkout code | ||
14 | uses: actions/checkout@v3 | ||
15 | - name: Fetch main branch | ||
16 | run: git fetch origin main --depth 1 | ||
17 | - uses: lots0logs/gh-action-get-changed-files@2.1.4 | ||
18 | id: changed-files | ||
19 | with: | ||
20 | token: ${{ secrets.GITHUB_TOKEN }} | ||
21 | - name: Checking recipe version bump | ||
22 | uses: ./.github/workflows/check-recipe-version-bump | ||
23 | with: | ||
24 | changed-files: ${{ steps.changed-files.outputs.modified }} | ||