Attempt dos
All checks were successful
main / test-backend (push) Successful in 10m13s
main / lint-frontend (push) Successful in 9m41s
main / lint-backend (push) Successful in 12m12s
main / test-frontend (push) Successful in 9m46s
main / release (push) Successful in 33m21s
main / lint (push) Successful in 4s
main / test (push) Successful in 3s
Close stale issues and PRs / stale (push) Successful in 26s

This commit is contained in:
Midou 2025-05-14 01:07:54 +01:00
parent 922a9048bc
commit 36abaf805b
Signed by: midou
GPG Key ID: 1D134A95FE521A7A
2 changed files with 26 additions and 15 deletions

View File

@ -91,6 +91,9 @@ jobs:
registry: https://git.linuxcrack.zip
username: ${{ gitea.actor }}
password: ${{ secrets.USER_TOKEN }}
- name: Get current tag
id: get_tag
run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
@ -98,3 +101,21 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.USER_TOKEN }}
- name: Upload artefacts
uses: christopherhx/gitea-upload-artifact@v4
with:
url: https://git.linuxcrack.zip
path: |
dist/*.tar.gz
dist/*.zip
dist/*.exe
dist/*.txt
if-no-files-found: error
compression-level: 0
- name: Push Docker images to registry
run: |-
TAG=${{ steps.get_tag.outputs.tag }}
for arch in amd64 arm64; do
docker tag filebrowser/filebrowser:${TAG}-$arch git.linuxcrack.zip/midou/filebrowser:${TAG}-$arch
docker push git.linuxcrack.zip/midou/filebrowser:${TAG}-$arch
done

View File

@ -1,16 +1,10 @@
name: "Lint PR"
---
name: Lint PR
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize
types: [opened, reopened, edited, synchronize]
permissions:
pull-requests: write
jobs:
main:
name: Validate PR title
@ -19,8 +13,7 @@ jobs:
- uses: amannn/action-semantic-pull-request@v5
id: lint_pr_title
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.USER_TOKEN }}
- uses: marocchino/sticky-pull-request-comment@v2
# When the previous steps fails, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
@ -29,11 +22,8 @@ jobs:
header: pr-title-lint-error
message: |
Hey there and thank you for opening this pull request! 👋🏼
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
Details:
```
${{ steps.lint_pr_title.outputs.error_message }}
```
@ -43,4 +33,4 @@ jobs:
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-title-lint-error
delete: true
delete: true