mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
ci: fix autofix (#34332)
This commit is contained in:
1 parent
26ffce6537
commit
c1330d35c0
11 files changed
+28
-469
No files matched your search
@@ -5,9 +5,6 @@ on:
|
||||
types:
|
||||
- labeled
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
# Cancel old builds on new commit for same workflow + branch/PR
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
@@ -18,19 +15,25 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'pull_request' && (github.event.label.name == 'autofix') }}
|
||||
steps:
|
||||
- name: Calculate number of commits
|
||||
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: apps
|
||||
ref: ${{ github.head_ref }}
|
||||
token: ${{ secrets.PAT_AUTOFIX }}
|
||||
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
|
||||
sparse-checkout: |
|
||||
packages
|
||||
apps
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
run_install: false
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: pnpm
|
||||
|
||||
- name: Install required dependencies
|
||||
run: pnpm i
|
||||
@@ -39,15 +42,8 @@ jobs:
|
||||
run: pnpm run format
|
||||
|
||||
- name: Commit changes and push to existing branch
|
||||
run: |
|
||||
git config --global user.name 'github-tidy-bot'
|
||||
git config --global user.email 'github-tidy-bot@supabase.com'
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
echo "[bot] Changes detected, committing."
|
||||
|
||||
echo "[bot] Running in non-squash mode."
|
||||
git commit -am "ci: Autofix updates from GitHub workflow"
|
||||
git push
|
||||
else
|
||||
echo "[bot] No changes detected, nothing to commit."
|
||||
fi
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: "ci: Autofix updates from GitHub workflow"
|
||||
commit_user_name: "kevcodez"
|
||||
commit_user_email: "k.grueneberg1994@gmail.com"
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
name: supa-mdx-lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
sparse-checkout: |
|
||||
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup the Supabase CLI
|
||||
uses: supabase/setup-cli@v1
|
||||
|
||||
@@ -20,3 +20,6 @@ packages/icons/__registry__
|
||||
packages/icons/src/icons/*.ts
|
||||
apps/ui-library/__registry__
|
||||
apps/ui-library/public/r
|
||||
apps/**/.contentlayer
|
||||
# invalid JSON file
|
||||
packages/ui/src/components/Form/examples/PhoneProvidersSchema.json
|
||||
@@ -239,13 +239,13 @@ jobs:
|
||||
SUPABASE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
PROJECT_REF: <your-project-id>
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@v2.1.5
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 22
|
||||
- run: npm run update-types
|
||||
- name: check for file changes
|
||||
id: git_status
|
||||
|
||||
@@ -212,7 +212,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: supabase/setup-cli@v1
|
||||
with:
|
||||
@@ -253,7 +253,7 @@ jobs:
|
||||
SUPABASE_PROJECT_ID: ${{ secrets.STAGING_PROJECT_ID }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: supabase/setup-cli@v1
|
||||
with:
|
||||
@@ -285,7 +285,7 @@ jobs:
|
||||
SUPABASE_PROJECT_ID: ${{ secrets.PRODUCTION_PROJECT_ID }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: supabase/setup-cli@v1
|
||||
with:
|
||||
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
PROJECT_ID: your-project-id
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: supabase/setup-cli@v1
|
||||
with:
|
||||
|
||||
@@ -266,7 +266,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Supabase CLI
|
||||
uses: supabase/setup-cli@v1
|
||||
|
||||
@@ -6,7 +6,7 @@ const ciCode = `jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: supabase/setup-cli@v1
|
||||
with:
|
||||
version: latest
|
||||
|
||||
@@ -1,397 +0,0 @@
|
||||
.sbui-space {
|
||||
/* @apply flex; */
|
||||
}
|
||||
|
||||
.sbui-space-row {
|
||||
/* @apply flex flex-row items-center; */
|
||||
}
|
||||
|
||||
.sbui-space-col {
|
||||
/* @apply flex flex-col; */
|
||||
}
|
||||
|
||||
.sbui-space-y-0 {
|
||||
/* @apply space-y-0; */
|
||||
}
|
||||
.sbui-space-y-0.5 {
|
||||
/* @apply space-y-0.5; */
|
||||
}
|
||||
.sbui-space-y-1 {
|
||||
/* @apply space-y-1; */
|
||||
}
|
||||
.sbui-space-y-1.5 {
|
||||
/* @apply space-y-1.5; */
|
||||
}
|
||||
.sbui-space-y-2 {
|
||||
/* @apply space-y-2; */
|
||||
}
|
||||
.sbui-space-y-2.5 {
|
||||
/* @apply space-y-2.5; */
|
||||
}
|
||||
.sbui-space-y-3 {
|
||||
/* @apply space-y-3; */
|
||||
}
|
||||
.sbui-space-y-3.5 {
|
||||
/* @apply space-y-3.5; */
|
||||
}
|
||||
.sbui-space-y-4 {
|
||||
/* @apply space-y-4; */
|
||||
}
|
||||
.sbui-space-y-5 {
|
||||
/* @apply space-y-5; */
|
||||
}
|
||||
.sbui-space-y-6 {
|
||||
/* @apply space-y-6; */
|
||||
}
|
||||
.sbui-space-y-7 {
|
||||
/* @apply space-y-7; */
|
||||
}
|
||||
.sbui-space-y-8 {
|
||||
/* @apply space-y-8; */
|
||||
}
|
||||
.sbui-space-y-9 {
|
||||
/* @apply space-y-9; */
|
||||
}
|
||||
.sbui-space-y-10 {
|
||||
/* @apply space-y-10; */
|
||||
}
|
||||
.sbui-space-y-11 {
|
||||
/* @apply space-y-11; */
|
||||
}
|
||||
.sbui-space-y-12 {
|
||||
/* @apply space-y-12; */
|
||||
}
|
||||
.sbui-space-y-14 {
|
||||
/* @apply space-y-14; */
|
||||
}
|
||||
.sbui-space-y-16 {
|
||||
/* @apply space-y-16; */
|
||||
}
|
||||
.sbui-space-y-20 {
|
||||
/* @apply space-y-20; */
|
||||
}
|
||||
.sbui-space-y-24 {
|
||||
/* @apply space-y-24; */
|
||||
}
|
||||
.sbui-space-y-28 {
|
||||
/* @apply space-y-28; */
|
||||
}
|
||||
.sbui-space-y-32 {
|
||||
/* @apply space-y-32; */
|
||||
}
|
||||
.sbui-space-y-36 {
|
||||
/* @apply space-y-36; */
|
||||
}
|
||||
.sbui-space-y-40 {
|
||||
/* @apply space-y-40; */
|
||||
}
|
||||
.sbui-space-y-44 {
|
||||
/* @apply space-y-44; */
|
||||
}
|
||||
.sbui-space-y-48 {
|
||||
/* @apply space-y-48; */
|
||||
}
|
||||
.sbui-space-y-52 {
|
||||
/* @apply space-y-52; */
|
||||
}
|
||||
.sbui-space-y-56 {
|
||||
/* @apply space-y-56; */
|
||||
}
|
||||
.sbui-space-y-60 {
|
||||
/* @apply space-y-60; */
|
||||
}
|
||||
.sbui-space-y-64 {
|
||||
/* @apply space-y-64; */
|
||||
}
|
||||
.sbui-space-y-72 {
|
||||
/* @apply space-y-72; */
|
||||
}
|
||||
.sbui-space-y-80 {
|
||||
/* @apply space-y-80; */
|
||||
}
|
||||
.sbui-space-y-96 {
|
||||
/* @apply space-y-96; */
|
||||
}
|
||||
.sbui-space-y-px {
|
||||
/* @apply space-y-px; */
|
||||
}
|
||||
.sbui-space-x-0 {
|
||||
/* @apply space-x-0; */
|
||||
}
|
||||
.sbui-space-x-1 {
|
||||
/* @apply space-x-1; */
|
||||
}
|
||||
.sbui-space-x-2 {
|
||||
/* @apply space-x-2; */
|
||||
}
|
||||
.sbui-space-x-3 {
|
||||
/* @apply space-x-3; */
|
||||
}
|
||||
.sbui-space-x-4 {
|
||||
/* @apply space-x-4; */
|
||||
}
|
||||
.sbui-space-x-5 {
|
||||
/* @apply space-x-5; */
|
||||
}
|
||||
.sbui-space-x-6 {
|
||||
/* @apply space-x-6; */
|
||||
}
|
||||
.sbui-space-x-7 {
|
||||
/* @apply space-x-7; */
|
||||
}
|
||||
.sbui-space-x-8 {
|
||||
/* @apply space-x-8; */
|
||||
}
|
||||
.sbui-space-x-9 {
|
||||
/* @apply space-x-9; */
|
||||
}
|
||||
.sbui-space-x-10 {
|
||||
/* @apply space-x-10; */
|
||||
}
|
||||
.sbui-space-x-11 {
|
||||
/* @apply space-x-11; */
|
||||
}
|
||||
.sbui-space-x-12 {
|
||||
/* @apply space-x-12; */
|
||||
}
|
||||
.sbui-space-x-14 {
|
||||
/* @apply space-x-14; */
|
||||
}
|
||||
.sbui-space-x-16 {
|
||||
/* @apply space-x-16; */
|
||||
}
|
||||
.sbui-space-x-20 {
|
||||
/* @apply space-x-20; */
|
||||
}
|
||||
.sbui-space-x-24 {
|
||||
/* @apply space-x-24; */
|
||||
}
|
||||
.sbui-space-x-28 {
|
||||
/* @apply space-x-28; */
|
||||
}
|
||||
.sbui-space-x-32 {
|
||||
/* @apply space-x-32; */
|
||||
}
|
||||
.sbui-space-x-36 {
|
||||
/* @apply space-x-36; */
|
||||
}
|
||||
.sbui-space-x-40 {
|
||||
/* @apply space-x-40; */
|
||||
}
|
||||
.sbui-space-x-44 {
|
||||
/* @apply space-x-44; */
|
||||
}
|
||||
.sbui-space-x-48 {
|
||||
/* @apply space-x-48; */
|
||||
}
|
||||
.sbui-space-x-52 {
|
||||
/* @apply space-x-52; */
|
||||
}
|
||||
.sbui-space-x-56 {
|
||||
/* @apply space-x-56; */
|
||||
}
|
||||
.sbui-space-x-60 {
|
||||
/* @apply space-x-60; */
|
||||
}
|
||||
.sbui-space-x-64 {
|
||||
/* @apply space-x-64; */
|
||||
}
|
||||
.sbui-space-x-72 {
|
||||
/* @apply space-x-72; */
|
||||
}
|
||||
.sbui-space-x-80 {
|
||||
/* @apply space-x-80; */
|
||||
}
|
||||
.sbui-space-x-96 {
|
||||
/* @apply space-x-96; */
|
||||
}
|
||||
.sbui-space-x-px {
|
||||
/* @apply space-x-px; */
|
||||
}
|
||||
.sbui-minus-space-y-0 {
|
||||
/* @apply -space-y-0; */
|
||||
}
|
||||
.sbui-minus-space-y-1 {
|
||||
/* @apply -space-y-1; */
|
||||
}
|
||||
.sbui-minus-space-y-2 {
|
||||
/* @apply -space-y-2; */
|
||||
}
|
||||
.sbui-minus-space-y-3 {
|
||||
/* @apply -space-y-3; */
|
||||
}
|
||||
.sbui-minus-space-y-4 {
|
||||
/* @apply -space-y-4; */
|
||||
}
|
||||
.sbui-minus-space-y-5 {
|
||||
/* @apply -space-y-5; */
|
||||
}
|
||||
.sbui-minus-space-y-6 {
|
||||
/* @apply -space-y-6; */
|
||||
}
|
||||
.sbui-minus-space-y-7 {
|
||||
/* @apply -space-y-7; */
|
||||
}
|
||||
.sbui-minus-space-y-8 {
|
||||
/* @apply -space-y-8; */
|
||||
}
|
||||
.sbui-minus-space-y-9 {
|
||||
/* @apply -space-y-9; */
|
||||
}
|
||||
.sbui-minus-space-y-10 {
|
||||
/* @apply -space-y-10; */
|
||||
}
|
||||
.sbui-minus-space-y-11 {
|
||||
/* @apply -space-y-11; */
|
||||
}
|
||||
.sbui-minus-space-y-12 {
|
||||
/* @apply -space-y-12; */
|
||||
}
|
||||
.sbui-minus-space-y-14 {
|
||||
/* @apply -space-y-14; */
|
||||
}
|
||||
.sbui-minus-space-y-16 {
|
||||
/* @apply -space-y-16; */
|
||||
}
|
||||
.sbui-minus-space-y-20 {
|
||||
/* @apply -space-y-20; */
|
||||
}
|
||||
.sbui-minus-space-y-24 {
|
||||
/* @apply -space-y-24; */
|
||||
}
|
||||
.sbui-minus-space-y-28 {
|
||||
/* @apply -space-y-28; */
|
||||
}
|
||||
.sbui-minus-space-y-32 {
|
||||
/* @apply -space-y-32; */
|
||||
}
|
||||
.sbui-minus-space-y-36 {
|
||||
/* @apply -space-y-36; */
|
||||
}
|
||||
.sbui-minus-space-y-40 {
|
||||
/* @apply -space-y-40; */
|
||||
}
|
||||
.sbui-minus-space-y-44 {
|
||||
/* @apply -space-y-44; */
|
||||
}
|
||||
.sbui-minus-space-y-48 {
|
||||
/* @apply -space-y-48; */
|
||||
}
|
||||
.sbui-minus-space-y-52 {
|
||||
/* @apply -space-y-52; */
|
||||
}
|
||||
.sbui-minus-space-y-56 {
|
||||
/* @apply -space-y-56; */
|
||||
}
|
||||
.sbui-minus-space-y-60 {
|
||||
/* @apply -space-y-60; */
|
||||
}
|
||||
.sbui-minus-space-y-64 {
|
||||
/* @apply -space-y-64; */
|
||||
}
|
||||
.sbui-minus-space-y-72 {
|
||||
/* @apply -space-y-72; */
|
||||
}
|
||||
.sbui-minus-space-y-80 {
|
||||
/* @apply -space-y-80; */
|
||||
}
|
||||
.sbui-minus-space-y-96 {
|
||||
/* @apply -space-y-96; */
|
||||
}
|
||||
.sbui-minus-space-y-px {
|
||||
/* @apply -space-y-px; */
|
||||
}
|
||||
|
||||
.sbui-minus-space-x-0 {
|
||||
/* @apply -space-x-0; */
|
||||
}
|
||||
.sbui-minus-space-x-1 {
|
||||
/* @apply -space-x-1; */
|
||||
}
|
||||
.sbui-minus-space-x-2 {
|
||||
/* @apply -space-x-2; */
|
||||
}
|
||||
.sbui-minus-space-x-3 {
|
||||
/* @apply -space-x-3; */
|
||||
}
|
||||
.sbui-minus-space-x-4 {
|
||||
/* @apply -space-x-4; */
|
||||
}
|
||||
.sbui-minus-space-x-5 {
|
||||
/* @apply -space-x-5; */
|
||||
}
|
||||
.sbui-minus-space-x-6 {
|
||||
/* @apply -space-x-6; */
|
||||
}
|
||||
.sbui-minus-space-x-7 {
|
||||
/* @apply -space-x-7; */
|
||||
}
|
||||
.sbui-minus-space-x-8 {
|
||||
/* @apply -space-x-8; */
|
||||
}
|
||||
.sbui-minus-space-x-9 {
|
||||
/* @apply -space-x-9; */
|
||||
}
|
||||
.sbui-minus-space-x-10 {
|
||||
/* @apply -space-x-10; */
|
||||
}
|
||||
.sbui-minus-space-x-11 {
|
||||
/* @apply -space-x-11; */
|
||||
}
|
||||
.sbui-minus-space-x-12 {
|
||||
/* @apply -space-x-12; */
|
||||
}
|
||||
.sbui-minus-space-x-14 {
|
||||
/* @apply -space-x-14; */
|
||||
}
|
||||
.sbui-minus-space-x-16 {
|
||||
/* @apply -space-x-16; */
|
||||
}
|
||||
.sbui-minus-space-x-20 {
|
||||
/* @apply -space-x-20; */
|
||||
}
|
||||
.sbui-minus-space-x-24 {
|
||||
/* @apply -space-x-24; */
|
||||
}
|
||||
.sbui-minus-space-x-28 {
|
||||
/* @apply -space-x-28; */
|
||||
}
|
||||
.sbui-minus-space-x-32 {
|
||||
/* @apply -space-x-32; */
|
||||
}
|
||||
.sbui-minus-space-x-36 {
|
||||
/* @apply -space-x-36; */
|
||||
}
|
||||
.sbui-minus-space-x-40 {
|
||||
/* @apply -space-x-40; */
|
||||
}
|
||||
.sbui-minus-space-x-44 {
|
||||
/* @apply -space-x-44; */
|
||||
}
|
||||
.sbui-minus-space-x-48 {
|
||||
/* @apply -space-x-48; */
|
||||
}
|
||||
.sbui-minus-space-x-52 {
|
||||
/* @apply -space-x-52; */
|
||||
}
|
||||
.sbui-minus-space-x-56 {
|
||||
/* @apply -space-x-56; */
|
||||
}
|
||||
.sbui-minus-space-x-60 {
|
||||
/* @apply -space-x-60; */
|
||||
}
|
||||
.sbui-minus-space-x-64 {
|
||||
/* @apply -space-x-64; */
|
||||
}
|
||||
.sbui-minus-space-x-72 {
|
||||
/* @apply -space-x-72; */
|
||||
}
|
||||
.sbui-minus-space-x-80 {
|
||||
/* @apply -space-x-80; */
|
||||
}
|
||||
.sbui-minus-space-x-96 {
|
||||
/* @apply -space-x-96; */
|
||||
}
|
||||
/* .sbui-minus-space-x-px {
|
||||
/* @apply -space-x-; */
|
||||
} */
|
||||
@@ -1,43 +0,0 @@
|
||||
/* .sbui-tab-button-underline {
|
||||
@apply rounded-none;
|
||||
.sbui-tab-button-underline {
|
||||
@apply rounded-none border-none;
|
||||
@apply hover:text-gray-600 hover:bg-transparent;
|
||||
@apply dark:hover:text-white dark:hover:bg-transparent;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 2px;
|
||||
margin-bottom: -1px;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.sbui-tab-button-underline--active {
|
||||
@apply border-brand-400;
|
||||
@apply rounded-none;
|
||||
@apply text-gray-600;
|
||||
@apply dark:text-white;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
.sbui-tab-bar--scrollable {
|
||||
overflow: auto;
|
||||
white-space: nowrap;
|
||||
-ms-overflow-style: none; /* IE and Edge */
|
||||
scrollbar-width: none; /* Firefox */
|
||||
}
|
||||
|
||||
/* Hide scrollbar for Chrome, Safari and Opera */
|
||||
.sbui-tab-bar--scrollable::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sbui-tab-bar-inner-container {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
/* base */
|
||||
.sbui-tab-bar-container {
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
} */
|
||||
Reference in new issue
Block a user