-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into data-upload-download-…
…apis
- Loading branch information
Showing
210 changed files
with
6,496 additions
and
1,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Formatting Backend and Scripts | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- # Files formatted by ./scripts/format.cargo.sh | ||
'**/Cargo.toml' | ||
- # Files formatted by ./scripts/format.rust.sh | ||
'**/*.rs' | ||
- # Files formatted by ./scripts/format.sh.sh | ||
# Note: shell scripts not ending in .sh are found with: scripts/format.sh.sh --list | grep -vE 'sh$' | ||
'**/*.sh' | ||
- 'docker/*' | ||
- 'scripts/*' | ||
- # This workflow | ||
'.github/workflows/formatting-checks.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
format: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install shfmt | ||
run: sudo snap install --classic shfmt | ||
- name: Install binstall | ||
run: | | ||
BINSTALL_VERSION="1.8.0" | ||
curl -L --proto '=https' --tlsv1.2 -sSf "https://github.com/cargo-bins/cargo-binstall/releases/download/v${BINSTALL_VERSION}/cargo-binstall-x86_64-unknown-linux-musl.tgz" | tar -xvzf - cargo-binstall | ||
./cargo-binstall -y --force "cargo-binstall@$BINSTALL_VERSION" | ||
rm cargo-binstall | ||
- name: Install cargo dependency sorter | ||
run: cargo binstall --no-confirm cargo-sort@1.0.9 | ||
- name: Format | ||
run: ./scripts/format.sh | ||
- name: Check formatted | ||
run: | | ||
test -z "$(git status --porcelain)" || { | ||
echo "FIX: Please run ./scripts/format.sh" | ||
git diff | ||
exit 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Remove Unused Svelte Files | ||
|
||
on: | ||
schedule: | ||
- cron: '30 3 * * MON' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-unused-files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Prepare | ||
uses: ./.github/actions/prepare | ||
|
||
- name: Remove unused files | ||
run: ./scripts/check.unused.sh --remove-files | ||
continue-on-error: true | ||
|
||
- name: Stage Changes | ||
run: git add . | ||
|
||
- name: Check for Changes | ||
run: | | ||
if ! git diff --cached --quiet; then | ||
echo "CHANGES_DETECTED=true" >> $GITHUB_ENV | ||
DELETED_FILES=$(git diff --cached --name-only) | ||
echo "DELETED_FILES=${DELETED_FILES}" >> $GITHUB_ENV | ||
fi | ||
# This action creates a PR only if there are changes. | ||
- name: Create Pull Request | ||
if: env.CHANGES_DETECTED == 'true' | ||
uses: ./.github/actions/create-pr | ||
with: | ||
token: ${{ secrets.GIX_CREATE_PR_PAT }} | ||
branch: bot-frontend-remove-unused-svelte-files | ||
title: 'chore(frontend): Remove Unused Svelte Files' | ||
body: | | ||
The following files were removed because they were not used in the project anymore: | ||
``` | ||
${{ env.DELETED_FILES }} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.