From 26c5cb82ddba6b0746c56430dac8985f7937e087 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sat, 14 Dec 2019 18:03:52 +0900 Subject: [PATCH] chore: upgrade actions/checkout to v2 --- .github/workflows/docker-image-ci.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker-image-ci.yml b/.github/workflows/docker-image-ci.yml index 4d22c8a..f7b335b 100644 --- a/.github/workflows/docker-image-ci.yml +++ b/.github/workflows/docker-image-ci.yml @@ -16,31 +16,25 @@ jobs: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - name: build env: DOCKER_IMAGE: docker.pkg.github.com/${{ github.repository }}/action:latest run: | - docker build . --file Dockerfile --tag ${DOCKER_IMAGE} || - (echo -e "\e[31m[${GITHUB_WORKFLOW}] failed to build\e[m" && exit 1) + docker build . --file Dockerfile --tag ${DOCKER_IMAGE} shellcheck: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 + - name: shellcheck run: shellcheck ./entrypoint.sh hadolint: runs-on: macos-latest steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - run: brew install hadolint - run: hadolint ./Dockerfile