Skip to content

feat: add right-click context menu to tabs with close options #2

feat: add right-click context menu to tabs with close options

feat: add right-click context menu to tabs with close options #2

Workflow file for this run

name: PR Checks
on:
pull_request:
branches:
- master
jobs:
check-version:
name: Check Version Modification
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Verify Version Unchanged
run: |
git fetch origin ${{ github.base_ref }}
# Skip if package.json wasn't modified
if ! git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q "^package.json$"; then
echo "package.json not modified."
exit 0
fi
BASE_VERSION=$(git show origin/${{ github.base_ref }}:package.json | jq -r '.version')
PR_VERSION=$(jq -r '.version' package.json)
echo "Base version: $BASE_VERSION"
echo "PR version: $PR_VERSION"
if [ "$BASE_VERSION" != "$PR_VERSION" ]; then
echo "::error::Version number updates are not allowed in Pull Requests."
exit 1
fi
echo "✅ Version check passed."