From 9a1d8f79bf0dc2c3e0496ee564878ca8ea56b800 Mon Sep 17 00:00:00 2001 From: Dan Webb Date: Wed, 8 Feb 2023 13:21:37 +0000 Subject: [PATCH] feat: Pin versions Pin python versions Pin yamllint version Remove labels as this is handled by the Docker metadata action Signed-off-by: Dan Webb --- .github/workflows/publish.yaml | 1 + Dockerfile | 11 ++--------- action.yml | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5011caf..6946226 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -54,3 +54,4 @@ jobs: tag: ${{ steps.tag_version.outputs.new_tag }} name: Release ${{ steps.tag_version.outputs.new_tag }} body: ${{ steps.tag_version.outputs.changelog }} + generateReleaseNotes: true diff --git a/Dockerfile b/Dockerfile index 60b4b97..8e589f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,10 @@ -FROM python:slim - -LABEL org.opencontainers.image.description \ - "Yamllint Action for GitHub Actions" \ - org.opencontainers.image.url \ - "https://github.com/actionshub/yamllint" \ - org.opencontainers.image.authors \ - "https://github.com/actionshub" +FROM python:3.10-slim ENV MATCHERS_DIR="._actionshub_problem-matchers" \ MATCHER_FILE="${MATCHERS_DIR}/yamllint.json" COPY yamllint.json ${MATCHER_FILE} -RUN pip install yamllint \ +RUN pip install yamllint==v1.29.0 \ && mkdir -p ${MATCHERS_DIR} \ && echo "::[add-matcher]${MATCHER_FILE}" diff --git a/action.yml b/action.yml index c81d9a0..dec7cae 100644 --- a/action.yml +++ b/action.yml @@ -4,7 +4,7 @@ author: 'Jason Field' description: 'Run yamllint on your yaml files with ease' runs: using: 'docker' - image: docker://ghcr.io/actionshub/yamllint:v1.4.0 + image: docker://ghcr.io/actionshub/yamllint:v1.5.0 branding: icon: 'edit-3' color: 'red'