Skip to content

Commit

Permalink
CI: Add a check on snapcraft.yaml update
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mars <[email protected]>
  • Loading branch information
upils committed Jul 22, 2024
1 parent 3b93b11 commit 7aeed04
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/snapcraft_yaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Has snapcraft.yaml been updated?

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: changelog-check
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get info on if snapcraft.yaml has changed
id: changed-files-specific
uses: tj-actions/[email protected]
with:
files: |
./snap/snapcraft.yaml
- name: Fail if snapcraft.yaml has not changed
if: steps.changed-files-specific.outputs.any_changed != 'true'
run: |
echo "snapcraft.yaml has not been updated. The version must be incremented."
exit 1

0 comments on commit 7aeed04

Please sign in to comment.