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
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:
parent
922a9048bc
commit
36abaf805b
21
.github/workflows/main.yaml
vendored
21
.github/workflows/main.yaml
vendored
@ -91,6 +91,9 @@ jobs:
|
|||||||
registry: https://git.linuxcrack.zip
|
registry: https://git.linuxcrack.zip
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.USER_TOKEN }}
|
password: ${{ secrets.USER_TOKEN }}
|
||||||
|
- name: Get current tag
|
||||||
|
id: get_tag
|
||||||
|
run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
||||||
@ -98,3 +101,21 @@ jobs:
|
|||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.USER_TOKEN }}
|
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
|
||||||
|
|||||||
18
.github/workflows/pr-lint.yaml
vendored
18
.github/workflows/pr-lint.yaml
vendored
@ -1,16 +1,10 @@
|
|||||||
name: "Lint PR"
|
---
|
||||||
|
name: Lint PR
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types:
|
types: [opened, reopened, edited, synchronize]
|
||||||
- opened
|
|
||||||
- reopened
|
|
||||||
- edited
|
|
||||||
- synchronize
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
name: Validate PR title
|
name: Validate PR title
|
||||||
@ -19,8 +13,7 @@ jobs:
|
|||||||
- uses: amannn/action-semantic-pull-request@v5
|
- uses: amannn/action-semantic-pull-request@v5
|
||||||
id: lint_pr_title
|
id: lint_pr_title
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.USER_TOKEN }}
|
||||||
|
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v2
|
||||||
# When the previous steps fails, the workflow would stop. By adding this
|
# When the previous steps fails, the workflow would stop. By adding this
|
||||||
# condition you can continue the execution with the populated error message.
|
# condition you can continue the execution with the populated error message.
|
||||||
@ -29,11 +22,8 @@ jobs:
|
|||||||
header: pr-title-lint-error
|
header: pr-title-lint-error
|
||||||
message: |
|
message: |
|
||||||
Hey there and thank you for opening this pull request! 👋🏼
|
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.
|
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:
|
Details:
|
||||||
|
|
||||||
```
|
```
|
||||||
${{ steps.lint_pr_title.outputs.error_message }}
|
${{ steps.lint_pr_title.outputs.error_message }}
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user