Skip to content

Commit

Permalink
👷 Create a workflow which checks if the version got updated
Browse files Browse the repository at this point in the history
The script works thanks Github Copilot, so it should better work on Github, right? RIGHT???
  • Loading branch information
HomerusJa authored Sep 4, 2024
1 parent af4381c commit e047ed5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/version_bump_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Ensure Version Update

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

jobs:
version-check:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Check for version update
run: |
if git diff HEAD^ HEAD --exit-code -- library.json; then
echo "Version not updated in library.json"
exit 1
else
echo "Version updated in library.json"
fi

0 comments on commit e047ed5

Please sign in to comment.