Compare commits

..

No commits in common. "main" and "v1.0.0" have entirely different histories.
main ... v1.0.0

3 changed files with 10 additions and 8 deletions

View File

@ -1,10 +1,12 @@
FROM gitea/runner-images:ubuntu-latest # Container image that runs your code
FROM alpine:3.21
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
# Install python/pip
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
RUN python3 -m pip install --no-cache --upgrade pip && \ RUN apk add --update --no-cache python3 && \
python3 -m pip install --no-cache conventional-pre-commit==4.0.0 ln -sf python3 /usr/bin/python && \
python3 -m ensurepip && \
pip3 install --no-cache --upgrade pip setuptools conventional-pre-commit
# Copies your code file from your action repository to the filesystem path `/` of the container # Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh

View File

@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- uses: https://git.tainton.uk/actions/conventional-commits-check-action@v1.0.0 - uses: https://git.tainton.uk/actions/conventional-commits-docker-action@v1.0.0
with: with:
commit-message: ${{ github.event.pull_request.title }} commit-message: ${{ github.event.pull_request.title }}
``` ```
@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- uses: https://git.tainton.uk/actions/conventional-commits-check-action@v1.0.0 - uses: https://git.tainton.uk/actions/conventional-commits-docker-action@v1.0.0
with: with:
commit-message: ${{ github.event.head_commit.message }} commit-message: ${{ github.event.head_commit.message }}
``` ```

View File

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