2 Commits

Author SHA1 Message Date
40fb6bf43a fix: switch to image that can install pip 2025-01-02 22:42:38 +00:00
9e710ff8d0 Update README.md 2025-01-02 23:36:16 +01:00
2 changed files with 7 additions and 9 deletions

View File

@ -1,12 +1,10 @@
# Container image that runs your code
FROM alpine:3.21
FROM gitea/runner-images:ubuntu-latest
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
# Install python/pip
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && \
ln -sf python3 /usr/bin/python && \
python3 -m ensurepip && \
pip3 install --no-cache --upgrade pip setuptools conventional-pre-commit
RUN python3 -m pip install --no-cache --upgrade pip && \
python3 -m pip install --no-cache 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

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