Skip to content

[Checkbox] Remove transform: translate3d(0, 0, 0); #10146

[Checkbox] Remove transform: translate3d(0, 0, 0);

[Checkbox] Remove transform: translate3d(0, 0, 0); #10146

name: Major version in changeset
on:
pull_request:
branches:
- main
types:
- labeled
- unlabeled
- opened
- synchronize
- reopened
jobs:
check-changesets:
if: |
!contains(github.event.pull_request.labels.*.name, '🤖Skip Major Check')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Fetch all branches
run: git fetch --all
- name: Checkout the feature branch
run: git checkout "$GITHUB_HEAD_REF" --
- name: Check major versions in changeset entries
run: |
commits="origin/$GITHUB_BASE_REF...origin/$GITHUB_HEAD_REF"
changeset_files=$(git diff --name-only --diff-filter=d "$commits" -- ".changeset/*.md")
if [[ -z "$changeset_files" ]]; then
echo "No changeset files detected"
exit 0
fi
if ! echo "$changeset_files" | xargs grep -qE "^\s*[\"'].*?[\"']\s*:\s*major\s*$"; then
echo "No major version upgrade detected"
exit 0
else
echo "This PR contains a major version upgrade which is only used for breaking changes."
echo "If you are sure you want to perform this action, please add the '🤖Skip Major Check' label"
exit 1
fi