8 Commits

Author SHA1 Message Date
6217c5c7de fix: install conventional-pre-commit via pipx
All checks were successful
Release / Create Release (push) Successful in 9s
Release / Print Release (push) Successful in 3s
2025-01-17 00:15:45 +01:00
720f156fa3 fix(pip): correctly pass --break-system-packages
All checks were successful
Release / Create Release (push) Successful in 10s
Release / Print Release (push) Successful in 2s
2025-01-16 23:43:02 +01:00
87e6a9f467 Force pip install to override system packages
All checks were successful
Release / Create Release (push) Successful in 16s
Release / Print Release (push) Successful in 2s
2025-01-16 23:31:51 +01:00
c73efa46a6 fix(release): remove non-existing dependency
All checks were successful
Release / Create Release (push) Successful in 10s
Release / Print Release (push) Successful in 3s
2025-01-15 21:55:14 +00:00
c402be911d feat(ci): enforce conventional commit
Some checks failed
Release / Create Release (push) Has been cancelled
Release / Print Release (push) Has been cancelled
2025-01-15 21:54:18 +00:00
022e94a287 feat(ci): auto-release on push 2025-01-15 21:52:52 +00:00
cdaf88b6fe fix(deps): add Renovate 2025-01-15 21:50:30 +00:00
f902085dd0 fix: ensure the variable PRTITLE is written to file 2025-01-02 22:44:58 +00:00
5 changed files with 57 additions and 4 deletions

View File

@ -0,0 +1,14 @@
name: Conventional Commit
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
jobs:
validate_pr_title:
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/conventional-commit.yml@main
with:
commit_message: ${{ gitea.event.pull_request.title }}

View File

@ -0,0 +1,20 @@
name: Release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
create_release:
name: Create Release
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/create-release.yml@main
secrets:
ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
print_release:
name: Print Release
runs-on: ubuntu-latest
needs: create_release
steps:
- run: echo "Created release ${{ needs.create_release.outputs.release_name }}."

View File

@ -1,10 +1,9 @@
FROM gitea/runner-images:ubuntu-latest
FROM git.tainton.uk/public/runner-ubuntu-custom:latest
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
ENV PYTHONUNBUFFERED=1
RUN python3 -m pip install --no-cache --upgrade pip && \
python3 -m pip install --no-cache conventional-pre-commit==4.0.0
RUN pipx install conventional-pre-commit==4.0.0
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh

View File

@ -3,5 +3,5 @@
set -e
PRTITLE="$1"
echo "PRTITLE" > /tmp/prtitle.txt
echo "$PRTITLE" > /tmp/prtitle.txt
conventional-pre-commit --no-color --force-scope --strict --verbose /tmp/prtitle.txt

20
renovate.json Normal file
View File

@ -0,0 +1,20 @@
{
"assignAutomerge": true,
"assigneesFromCodeOwners": true,
"dependencyDashboardAutoclose": true,
"extends": ["config:recommended", "docker:enableMajor"],
"ignorePaths": ["**/.archive/**"],
"labels": ["type/dependencies"],
"platformCommit": "enabled",
"rebaseWhen": "behind-base-branch",
"rollbackPrs": true,
"vulnerabilityAlerts": {
"commitMessagePrefix": "[SECURITY] ",
"enabled": true,
"labels": ["security"],
"prCreation": "immediate"
},
"lockFileMaintenance": {
"enabled": true
}
}