diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..f05727b --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,13 @@ +# Summary of changes + +Do any of the followings changes break current behaviour or configuration? + +- **YES** / NO + +## How changes have been tested + +- + +## List any unknowns + +- diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..3cf9cd0 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,35 @@ +name: Lint + +on: + pull_request: + workflow_dispatch: + +permissions: + pull-requests: write + +jobs: + lint-bash: + name: Lint Bash scripts + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: reviewdog/action-shellcheck@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: shellcheck + level: warning + path: . + pattern: '*.sh' + fail_on_error: true + + lint-dockerfile: + name: Lint Dockerfiles + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: hadolint + uses: reviewdog/action-hadolint@v1 + with: + level: warning + fail_on_error: true + hadolint_ignore: DL3016 DL3018 # Ignore pinning apk and npm packages to specific version with @ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c3ca724..4cfcc99 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v3 with: fetch-depth: '0' - name: Bump version and push tag diff --git a/Dockerfile b/Dockerfile index 6e5e2dc..b64fc5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM node:12-alpine3.15 +FROM node:16-alpine LABEL "repository"="https://github.com/anothrNick/github-tag-action" LABEL "homepage"="https://github.com/anothrNick/github-tag-action" LABEL "maintainer"="Nick Sjostrom" -RUN apk update && apk add bash git curl jq && npm install -g semver +RUN apk --no-cache add bash git curl jq && npm install -g semver COPY entrypoint.sh /entrypoint.sh diff --git a/README.md b/README.md index 0fc7765..bcf2794 100755 --- a/README.md +++ b/README.md @@ -22,17 +22,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: '0' - name: Bump version and push tag - uses: anothrNick/github-tag-action@1.36.0 + uses: anothrNick/github-tag-action@1.40.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WITH_V: true ``` -_NOTE: set the fetch-depth for `actions/checkout@v2` to be sure you retrieve all commits to look for the semver commit message._ +_NOTE: set the fetch-depth for `actions/checkout@v2` or newer to be sure you retrieve all commits to look for the semver commit message._ #### Options