From 2a5aeea9765c1b97e1d1a7db51bfb6174c931426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Mart=C3=ADn=20Garc=C3=ADa?= Date: Thu, 15 Aug 2024 09:46:13 +0200 Subject: [PATCH] feat: Rename files and added editorconfig --- .editorconfig | 47 ++++++++++++++++++++++++++++++ .github/workflows/open-editor.yaml | 12 ++++++++ .github/workflows/release.yaml | 4 +-- README.md | 6 ++-- package.json | 14 +++++---- 5 files changed, 72 insertions(+), 11 deletions(-) create mode 100644 .editorconfig create mode 100644 .github/workflows/open-editor.yaml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9be8bce --- /dev/null +++ b/.editorconfig @@ -0,0 +1,47 @@ +# EditorConfig is awesome: https://EditorConfig.org +# Uses editorconfig to maintain consistent coding styles + +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +max_line_length = 80 +trim_trailing_whitespace = true + +[*.{tf,tfvars}] +indent_style = space +indent_size = 2 +tab_width = 2 + +[*.py] +indent_style = space +indent_size = 4 +max_line_length = 79 + +[*.md] +trim_trailing_whitespace = false + +[*.{yaml,yml,json,jsonc}] +indent_style = space +indent_size = 2 + +[Dockerfile*] +indent_style = space +indent_size = 2 + +[*.sh] +indent_style = space +indent_size = 2 + +[Makefile] +indent_style = tab + +[*.gitignore] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/.github/workflows/open-editor.yaml b/.github/workflows/open-editor.yaml new file mode 100644 index 0000000..c8378ef --- /dev/null +++ b/.github/workflows/open-editor.yaml @@ -0,0 +1,12 @@ +name: EditorConfig Checker + +on: + issues: + types: [opened] + pull_request: + types: [opened, edited, synchronize, reopened] + +jobs: + editorconfig: + uses: devops-ia/.github/.github/workflows/editorconfig.yaml@main + secrets: inherit diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 166145e..b12c967 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,7 +2,7 @@ name: Manage lifecycle Helm Release Cleaner env: USER: devopsiaci - REPO: helm-release-cleaner + REPO: release-cleaner on: push: @@ -53,4 +53,4 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - repository: ${{ env.USER }}/${{ env.REPO }} \ No newline at end of file + repository: ${{ env.USER }}/${{ env.REPO }} diff --git a/README.md b/README.md index 7c3df02..2b3c718 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# helm-release-cleaner +# release-cleaner -Image used for helm usage with bash scripts +Docker image with helm binary to use by helm-release-cleaner Helm Chart. ```bash FROM docker.io/alpine:3.12 @@ -15,4 +15,4 @@ RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/s chmod 700 get_helm.sh && \ ./get_helm.sh -``` \ No newline at end of file +``` diff --git a/package.json b/package.json index 5a04d64..77106d6 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,19 @@ { - "name": "@devops-ia/helm-release-cleaner", + "name": "@devops-ia/release-cleaner", "version": "3.0.0", "description": "GitHub Action for Helm Release Cleaner", - "author": "amartingarcia (https://github.com/devops-ia/helm-release-cleaner)", - "homepage": "https://github.com/devops-ia/helm-release-cleaner#readme", + "author": "amartingarcia (https://github.com/devops-ia/release-cleaner)", + "homepage": "https://github.com/devops-ia/release-cleaner#readme", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ - "helm-release-cleaner", + "release-cleaner", "action" ], "license": "MIT", "bugs": { - "url": "https://github.com/devops-ia/helm-release-cleaner/issues" + "url": "https://github.com/devops-ia/release-cleaner/issues" }, "release": { "tagFormat": "v${version}", @@ -29,7 +29,9 @@ [ "@semantic-release/git", { - "assets": ["CHANGELOG.md"] + "assets": [ + "CHANGELOG.md" + ] } ] ]