From 9379b32eb6e98429a7b2d25d47864e730d10bdc7 Mon Sep 17 00:00:00 2001 From: Wagner Santos Date: Thu, 3 Oct 2019 17:16:08 -0300 Subject: [PATCH 1/2] feat: use image from docker hub --- Dockerfile | 2 +- action.yml | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 939dea3..e15f9c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:10 +FROM node:10-alpine COPY package*.json / diff --git a/action.yml b/action.yml index 6a524ee..a2b12de 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ inputs: default: './commitlint.config.js' runs: using: 'docker' - image: 'Dockerfile' + image: 'docker://wagoid/commitlint-github-action:1.1.0' branding: icon: 'check-square' color: 'blue' diff --git a/package.json b/package.json index f60d272..afe1587 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commitlint-github-action", - "version": "1.0.0", + "version": "1.1.0", "description": "commitlint github action", "main": "index.js", "scripts": { From 33f8aa30dd74d746436537fa50b0073a575aa53e Mon Sep 17 00:00:00 2001 From: Wagner Santos Date: Fri, 4 Oct 2019 00:39:36 -0300 Subject: [PATCH 2/2] fix: revert action to use debian image Somehow when using alpine image, github actions was not running the entrypoint --- Dockerfile | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e15f9c2..939dea3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:10-alpine +FROM node:10 COPY package*.json / diff --git a/README.md b/README.md index 5cfcb0c..c1fec62 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ name: Commitlint on: [pull_request] jobs: - commitlint: + lint: runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v1 - - uses: wagoid/commitlint-github-action@v1.0.0 + - uses: wagoid/commitlint-github-action@v1.1.0 ``` ## Inputs