Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BI-29 : Add Status Check in CI/CD pipeline #10

Merged
merged 11 commits into from
Oct 16, 2023
18 changes: 18 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Empty file removed .preetierignore
Empty file.
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -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