diff options
author | Nathanaƫl Houn <contact@nathanaelhoun.fr> | 2022-11-19 11:11:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 11:11:44 +0100 |
commit | c35ff5710fcd1713f29ae50c261c6b9cd76726ce (patch) | |
tree | 1790a4c63a23c2ae4bd2cd566da8edc8f1716ebd /.github/workflows/check-pr.yml | |
parent | add RaphaelJenni as a contributor for code (#241) [skip ci] (diff) | |
download | ferdium-recipes-c35ff5710fcd1713f29ae50c261c6b9cd76726ce.tar.gz ferdium-recipes-c35ff5710fcd1713f29ae50c261c6b9cd76726ce.tar.zst ferdium-recipes-c35ff5710fcd1713f29ae50c261c6b9cd76726ce.zip |
ci: add recipe version bump check in PRs (#236)
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 }} | ||