diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index f47ed64..342fe72 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -58,3 +58,21 @@ jobs: with: # 👇 Chromatic projectToken, refer to the manage page to obtain it. projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + + check-up-to-date: + name: Check if PR is up to date with the main branch + runs-on: ubuntu-latest + + steps: + - name: Git checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + #Check if the PR is up to date with the main branch + - name: Check if branch is ahead of main + run: | + if ! git merge-base --is-ancestor origin/main ${{ github.event.pull_request.head.sha }}; + then echo "This branch is not up to date. Please merge with main."; + exit 1; + else echo "This branch is up to date with main!🎉"; + fi diff --git a/.preetierignore b/.preetierignore deleted file mode 100644 index e69de29..0000000 diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..3890519 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,9 @@ +.github/workflows/actions.yml +.eslintrc.json +.prettierrc.json +.storybook/ +.vscode/settings.json +package.json +package-lock.json +README.md +tailwind.config.js \ No newline at end of file