Skip to content

Commit

Permalink
Add changelog action
Browse files Browse the repository at this point in the history
  • Loading branch information
CybAtax committed Apr 19, 2024
1 parent 6fbe2a7 commit 0e1fbdf
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Verify changelog

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read

jobs:
verify-changelog:
name: Verify changelog
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Verify file changes
run: |
# Check if any files were changed
if git diff --name-only HEAD^ HEAD | grep -e '^(*gradle*|src)'; then
echo "files were changed"
exit 0
else
echo "No file was changed"
exit 1
fi

0 comments on commit 0e1fbdf

Please sign in to comment.