diff --git a/.yamllint.yml b/.yamllint.yml index 354fa2f..065bc60 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -9,3 +9,5 @@ rules: check-keys: false comments: min-spaces-from-content: 1 + trailing-spaces: + level: warning diff --git a/common-cache/README.md b/common-cache/README.md index c105cf6..bfae5c9 100644 --- a/common-cache/README.md +++ b/common-cache/README.md @@ -9,7 +9,7 @@ Standardized caching strategy for all actions ### Inputs | name | description | required | default | -| -------------- | ---------------------------------------------------- | -------- | ------- | +|----------------|------------------------------------------------------|----------|---------| | `type` |
Type of cache (npm, composer, go, pip, etc.)
| `true` | `""` | | `paths` |Paths to cache (comma-separated)
| `true` | `""` | | `key-prefix` |Custom prefix for cache key
| `false` | `""` | @@ -20,7 +20,7 @@ Standardized caching strategy for all actions ### Outputs | name | description | -| ------------- | --------------------------- | +|---------------|-----------------------------| | `cache-hit` |Cache hit indicator
| | `cache-key` |Generated cache key
| | `cache-paths` |Resolved cache paths
| diff --git a/common-file-check/README.md b/common-file-check/README.md index 7be52cb..a577439 100644 --- a/common-file-check/README.md +++ b/common-file-check/README.md @@ -10,13 +10,13 @@ Emits an output 'found' which is true or false. ### Inputs | name | description | required | default | -| -------------- | --------------------------------------- | -------- | ------- | +|----------------|-----------------------------------------|----------|---------| | `file-pattern` |Glob pattern for files to check.
| `true` | `""` | ### Outputs | name | description | -| ------- | -------------------------------------------------------------- | +|---------|----------------------------------------------------------------| | `found` |Indicates if the files matching the pattern were found.
| ### Runs diff --git a/csharp-build/README.md b/csharp-build/README.md index 1eb70b3..20d85f5 100644 --- a/csharp-build/README.md +++ b/csharp-build/README.md @@ -9,7 +9,7 @@ Builds and tests C# projects. ### Inputs | name | description | required | default | -| ---------------- | ---------------------------------- | -------- | ------- | +|------------------|------------------------------------|----------|---------| | `dotnet-version` |Version of .NET SDK to use.
| `false` | `""` | ### Runs diff --git a/csharp-lint-check/README.md b/csharp-lint-check/README.md index 6e6cdca..db4d00c 100644 --- a/csharp-lint-check/README.md +++ b/csharp-lint-check/README.md @@ -9,7 +9,7 @@ Runs linters like StyleCop or dotnet-format for C# code style checks. ### Inputs | name | description | required | default | -| ---------------- | ---------------------------------- | -------- | ------- | +|------------------|------------------------------------|----------|---------| | `dotnet-version` |Version of .NET SDK to use.
| `false` | `""` | ### Runs diff --git a/csharp-publish/README.md b/csharp-publish/README.md index 5638698..306020c 100644 --- a/csharp-publish/README.md +++ b/csharp-publish/README.md @@ -9,7 +9,7 @@ Publishes a C# project to GitHub Packages. ### Inputs | name | description | required | default | -| ---------------- | ---------------------------------------- | -------- | ----------- | +|------------------|------------------------------------------|----------|-------------| | `dotnet-version` |Version of .NET SDK to use.
| `false` | `""` | | `namespace` |GitHub namespace for the package.
| `true` | `ivuorinen` | diff --git a/docker-build/README.md b/docker-build/README.md index df2db3c..e7a8eca 100644 --- a/docker-build/README.md +++ b/docker-build/README.md @@ -9,7 +9,7 @@ Builds a Docker image for multiple architectures with enhanced security and reli ### Inputs | name | description | required | default | -| --------------- | ----------------------------------------------------------------------------------- | -------- | --------------------------------------------------- | +|-----------------|-------------------------------------------------------------------------------------|----------|-----------------------------------------------------| | `image-name` |The name of the Docker image to build. Defaults to the repository name.
| `false` | `""` | | `tag` |The tag for the Docker image. Must follow semver or valid Docker tag format.
| `true` | `""` | | `architectures` |Comma-separated list of architectures to build for.
| `false` | `linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6` | @@ -23,7 +23,7 @@ Builds a Docker image for multiple architectures with enhanced security and reli ### Outputs | name | description | -| -------------- | ------------------------------------ | +|----------------|--------------------------------------| | `image-digest` |The digest of the built image
| | `metadata` |Build metadata in JSON format
| | `platforms` |Successfully built platforms
| diff --git a/docker-publish-gh/README.md b/docker-publish-gh/README.md index 923f0e8..c5124df 100644 --- a/docker-publish-gh/README.md +++ b/docker-publish-gh/README.md @@ -9,7 +9,7 @@ Publishes a Docker image to GitHub Packages with advanced security and reliabili ### Inputs | name | description | required | default | -| ------------- | -------------------------------------------------------------------------------- | -------- | ------------------------- | +|---------------|----------------------------------------------------------------------------------|----------|---------------------------| | `image-name` |The name of the Docker image to publish. Defaults to the repository name.
| `false` | `""` | | `tags` |Comma-separated list of tags for the Docker image.
| `true` | `""` | | `platforms` |Platforms to publish (comma-separated). Defaults to amd64 and arm64.
| `false` | `linux/amd64,linux/arm64` | @@ -23,7 +23,7 @@ Publishes a Docker image to GitHub Packages with advanced security and reliabili ### Outputs | name | description | -| ------------ | ----------------------------------------- | +|--------------|-------------------------------------------| | `image-name` |Full image name including registry
| | `digest` |The digest of the published image
| | `tags` |List of published tags
| diff --git a/docker-publish-hub/README.md b/docker-publish-hub/README.md index 6e876d2..c8a03bb 100644 --- a/docker-publish-hub/README.md +++ b/docker-publish-hub/README.md @@ -9,7 +9,7 @@ Publishes a Docker image to Docker Hub with enhanced security and reliability fe ### Inputs | name | description | required | default | -| ------------------------ | -------------------------------------------------------------------------------- | -------- | ------------------------- | +|--------------------------|----------------------------------------------------------------------------------|----------|---------------------------| | `image-name` |The name of the Docker image to publish. Defaults to the repository name.
| `false` | `""` | | `tags` |Comma-separated list of tags for the Docker image.
| `true` | `""` | | `platforms` |Platforms to publish (comma-separated). Defaults to amd64 and arm64.
| `false` | `linux/amd64,linux/arm64` | @@ -25,7 +25,7 @@ Publishes a Docker image to Docker Hub with enhanced security and reliability fe ### Outputs | name | description | -| ------------ | ----------------------------------------- | +|--------------|-------------------------------------------| | `image-name` |Full image name including registry
| | `digest` |The digest of the published image
| | `tags` |List of published tags
| diff --git a/docker-publish/README.md b/docker-publish/README.md index 72dc364..6a035e1 100644 --- a/docker-publish/README.md +++ b/docker-publish/README.md @@ -9,14 +9,14 @@ Publish a Docker image to GitHub Packages and Docker Hub. ### Inputs | name | description | required | default | -| ---------- | ----------------------------------------------------------- | -------- | ------- | +|------------|-------------------------------------------------------------|----------|---------| | `registry` |Registry to publish to (dockerhub, github, or both).
| `true` | `both` | | `nightly` |Is this a nightly build? (true or false)
| `false` | `false` | ### Outputs | name | description | -| ---------- | ----------------------------------------- | +|------------|-------------------------------------------| | `registry` |Registry where image was published
| ### Runs diff --git a/dotnet-version-detect/README.md b/dotnet-version-detect/README.md index 9227eb0..1b796d7 100644 --- a/dotnet-version-detect/README.md +++ b/dotnet-version-detect/README.md @@ -9,13 +9,13 @@ Detects .NET SDK version from global.json or defaults to a specified version. ### Inputs | name | description | required | default | -| ----------------- | ------------------------------------------------------------------- | -------- | ------- | +|-------------------|---------------------------------------------------------------------|----------|---------| | `default-version` |Default .NET SDK version to use if global.json is not found.
| `true` | `7.0` | ### Outputs | name | description | -| ---------------- | -------------------------------------------- | +|------------------|----------------------------------------------| | `dotnet-version` |Detected or default .NET SDK version.
| ### Runs diff --git a/eslint-check/README.md b/eslint-check/README.md index 4d2ed58..77cedc8 100644 --- a/eslint-check/README.md +++ b/eslint-check/README.md @@ -9,7 +9,7 @@ Run ESLint check on the repository with advanced configuration and reporting ### Inputs | name | description | required | default | -| ------------------- | ------------------------------------------------ | -------- | ------------------- | +|---------------------|--------------------------------------------------|----------|---------------------| | `working-directory` |Directory containing files to lint
| `false` | `.` | | `eslint-version` |ESLint version to use
| `false` | `latest` | | `config-file` |Path to ESLint config file
| `false` | `.eslintrc` | @@ -24,7 +24,7 @@ Run ESLint check on the repository with advanced configuration and reporting ### Outputs | name | description | -| --------------- | -------------------------------- | +|-----------------|----------------------------------| | `error-count` |Number of errors found
| | `warning-count` |Number of warnings found
| | `sarif-file` |Path to SARIF report file
| diff --git a/github-release/README.md b/github-release/README.md index 79c47b8..56299eb 100644 --- a/github-release/README.md +++ b/github-release/README.md @@ -9,7 +9,7 @@ Creates a GitHub release with a version and changelog. ### Inputs | name | description | required | default | -| ----------- | ---------------------------------------------------- | -------- | ------- | +|-------------|------------------------------------------------------|----------|---------| | `version` |The version for the release.
| `true` | `""` | | `changelog` |The changelog or description for the release.
| `false` | `""` | diff --git a/go-build/README.md b/go-build/README.md index bc70e41..43403af 100644 --- a/go-build/README.md +++ b/go-build/README.md @@ -9,7 +9,7 @@ Builds the Go project. ### Inputs | name | description | required | default | -| ------------- | ----------------------------------- | -------- | ------- | +|---------------|-------------------------------------|----------|---------| | `go-version` |Go version to use.
| `false` | `""` | | `destination` |Build destination directory.
| `false` | `./bin` | diff --git a/go-lint/README.md b/go-lint/README.md index b5bbf99..25f1799 100644 --- a/go-lint/README.md +++ b/go-lint/README.md @@ -9,7 +9,7 @@ Run golangci-lint with advanced configuration, caching, and reporting ### Inputs | name | description | required | default | -| ----------------------- | ---------------------------------------------------- | -------- | --------------- | +|-------------------------|------------------------------------------------------|----------|-----------------| | `working-directory` |Directory containing Go files
| `false` | `.` | | `golangci-lint-version` |Version of golangci-lint to use
| `false` | `latest` | | `go-version` |Go version to use
| `false` | `stable` | @@ -27,7 +27,7 @@ Run golangci-lint with advanced configuration, caching, and reporting ### Outputs | name | description | -| ---------------- | ----------------------------------------- | +|------------------|-------------------------------------------| | `error-count` |Number of errors found
| | `sarif-file` |Path to SARIF report file
| | `cache-hit` |Indicates if there was a cache hit
| diff --git a/go-version-detect/README.md b/go-version-detect/README.md index 0bf8114..fbf3003 100644 --- a/go-version-detect/README.md +++ b/go-version-detect/README.md @@ -9,13 +9,13 @@ Detects the Go version from the project's go.mod file or defaults to a specified ### Inputs | name | description | required | default | -| ----------------- | -------------------------------------------------------- | -------- | ------- | +|-------------------|----------------------------------------------------------|----------|---------| | `default-version` |Default Go version to use if go.mod is not found.
| `false` | `1.22` | ### Outputs | name | description | -| ------------ | -------------------------------------- | +|--------------|----------------------------------------| | `go-version` |Detected or default Go version.
| ### Runs diff --git a/node-setup/README.md b/node-setup/README.md index f176133..0ddcbc6 100644 --- a/node-setup/README.md +++ b/node-setup/README.md @@ -9,7 +9,7 @@ Sets up Node.js environment with advanced version management, caching, and tooli ### Inputs | name | description | required | default | -| ----------------- | ------------------------------------------------------------------------ | -------- | ---------------------------- | +|-------------------|--------------------------------------------------------------------------|----------|------------------------------| | `default-version` |Default Node.js version to use if no configuration file is found.
| `false` | `22` | | `package-manager` |Node.js package manager to use (npm, yarn, pnpm)
| `false` | `npm` | | `registry-url` |Custom NPM registry URL
| `false` | `https://registry.npmjs.org` | @@ -22,7 +22,7 @@ Sets up Node.js environment with advanced version management, caching, and tooli ### Outputs | name | description | -| ----------------- | ----------------------------------------- | +|-------------------|-------------------------------------------| | `node-version` |Installed Node.js version
| | `package-manager` |Selected package manager
| | `cache-hit` |Indicates if there was a cache hit
| diff --git a/npm-publish/README.md b/npm-publish/README.md index 630488b..8ff0bbf 100644 --- a/npm-publish/README.md +++ b/npm-publish/README.md @@ -9,7 +9,7 @@ Publishes the package to the NPM registry with configurable scope and registry U ### Inputs | name | description | required | default | -| ----------------- | ----------------------------------- | -------- | -------------------------------------- | +|-------------------|-------------------------------------|----------|----------------------------------------| | `registry-url` |Registry URL for publishing.
| `false` | `https://registry.npmjs.org/` | | `scope` |Package scope to use.
| `false` | `@ivuorinen` | | `package-version` |The version to publish.
| `false` | `${{ github.event.release.tag_name }}` | diff --git a/php-composer/README.md b/php-composer/README.md index 2294428..76306f2 100644 --- a/php-composer/README.md +++ b/php-composer/README.md @@ -9,7 +9,7 @@ Runs Composer install on a repository with advanced caching and configuration. ### Inputs | name | description | required | default | -| ------------------- | ------------------------------------------------------------- | -------- | --------------------------------------------------- | +|---------------------|---------------------------------------------------------------|----------|-----------------------------------------------------| | `php` |PHP Version to use.
| `true` | `8.4` | | `extensions` |Comma-separated list of PHP extensions to install
| `false` | `mbstring, xml, zip, curl, json` | | `tools` |Comma-separated list of Composer tools to install
| `false` | `composer:v2` | @@ -23,7 +23,7 @@ Runs Composer install on a repository with advanced caching and configuration. ### Outputs | name | description | -| ------------------ | ----------------------------------------------- | +|--------------------|-------------------------------------------------| | `lock` |composer.lock or composer.json file hash
| | `php-version` |Installed PHP version
| | `composer-version` |Installed Composer version
| diff --git a/php-laravel-phpunit/README.md b/php-laravel-phpunit/README.md index 474eeb8..e263ea3 100644 --- a/php-laravel-phpunit/README.md +++ b/php-laravel-phpunit/README.md @@ -9,7 +9,7 @@ Setup PHP, install dependencies, generate key, create database and run composer ### Inputs | name | description | required | default | -| ------------------ | --------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------- | +|--------------------|-----------------------------------------------------------------------------------------------------------------------|----------|---------------------------------------------| | `php-version` |PHP Version to use, see https://github.com/marketplace/actions/setup-php-action#php-version-optional
| `false` | `latest` | | `php-version-file` |PHP Version file to use, see https://github.com/marketplace/actions/setup-php-action#php-version-file-optional
| `false` | `.php-version` | | `extensions` |PHP extensions to install, see https://github.com/marketplace/actions/setup-php-action#extensions-optional
| `false` | `mbstring, intl, json, pdo_sqlite, sqlite3` | @@ -18,7 +18,7 @@ Setup PHP, install dependencies, generate key, create database and run composer ### Outputs | name | description | -| ------------------ | ---------------------------------------------- | +|--------------------|------------------------------------------------| | `php-version` |The PHP version that was setup
| | `php-version-file` |The PHP version file that was used
| | `extensions` |The PHP extensions that were installed
| diff --git a/pre-commit/README.md b/pre-commit/README.md index 7bd6852..0e1915f 100644 --- a/pre-commit/README.md +++ b/pre-commit/README.md @@ -9,7 +9,7 @@ Runs pre-commit on the repository and pushes the fixes back to the repository ### Inputs | name | description | required | default | -| ------------------- | ------------------------------------- | -------- | --------------------------- | +|---------------------|---------------------------------------|----------|-----------------------------| | `pre-commit-config` |pre-commit configuration file
| `false` | `.pre-commit-config.yaml` | | `base-branch` |Base branch to compare against
| `false` | `""` | | `token` |GitHub Token
| `false` | `${{ github.token }}` | diff --git a/prettier-check/README.md b/prettier-check/README.md index 514fcc8..6ac1fa4 100644 --- a/prettier-check/README.md +++ b/prettier-check/README.md @@ -9,7 +9,7 @@ Run Prettier check on the repository with advanced configuration and reporting ### Inputs | name | description | required | default | -| ------------------- | ---------------------------------------------------------- | -------- | ------------------------------------------------ | +|---------------------|------------------------------------------------------------|----------|--------------------------------------------------| | `working-directory` |Directory containing files to check
| `false` | `.` | | `prettier-version` |Prettier version to use
| `false` | `latest` | | `config-file` |Path to Prettier config file
| `false` | `.prettierrc` | @@ -25,7 +25,7 @@ Run Prettier check on the repository with advanced configuration and reporting ### Outputs | name | description | -| ------------------- | --------------------------------------------- | +|---------------------|-----------------------------------------------| | `files-checked` |Number of files checked
| | `unformatted-files` |Number of files with formatting issues
| | `sarif-file` |Path to SARIF report file
| diff --git a/python-lint-fix/README.md b/python-lint-fix/README.md index 6d6ffdf..b3348c9 100644 --- a/python-lint-fix/README.md +++ b/python-lint-fix/README.md @@ -9,7 +9,7 @@ Lints and fixes Python files, commits changes, and uploads SARIF report. ### Inputs | name | description | required | default | -| ------------------- | --------------------------------------------------------------------- | -------- | ------- | +|---------------------|-----------------------------------------------------------------------|----------|---------| | `python-version` |Python version to use
| `false` | `3.11` | | `flake8-version` |Flake8 version to use
| `false` | `7.0.0` | | `autopep8-version` |Autopep8 version to use
| `false` | `2.0.4` | @@ -20,7 +20,7 @@ Lints and fixes Python files, commits changes, and uploads SARIF report. ### Outputs | name | description | -| ------------- | ------------------------------------------------------ | +|---------------|--------------------------------------------------------| | `lint-result` |Result of the linting process (success/failure)
| | `fixed-files` |Number of files that were fixed
| | `error-count` |Number of errors found
| diff --git a/release-monthly/README.md b/release-monthly/README.md index 6a89348..e9d5d4f 100644 --- a/release-monthly/README.md +++ b/release-monthly/README.md @@ -9,7 +9,7 @@ Creates a release for the current month, incrementing patch number if necessary. ### Inputs | name | description | required | default | -| --------- | -------------------------------------------------------- | -------- | --------------------- | +|-----------|----------------------------------------------------------|----------|-----------------------| | `token` |GitHub token with permission to create releases.
| `true` | `${{ github.token }}` | | `dry-run` |Run in dry-run mode without creating the release.
| `false` | `false` | | `prefix` |Optional prefix for release tags.
| `false` | `""` | @@ -17,7 +17,7 @@ Creates a release for the current month, incrementing patch number if necessary. ### Outputs | name | description | -| -------------- | ------------------------------------- | +|----------------|---------------------------------------| | `release-tag` |The tag of the created release
| | `release-url` |The URL of the created release
| | `previous-tag` |The previous release tag
| diff --git a/run.sh b/run.sh index 88742d6..c535c3f 100755 --- a/run.sh +++ b/run.sh @@ -14,12 +14,12 @@ handle_error() { } trap 'handle_error $LINENO' ERR -echo "π Aloitetaan pΓ€ivitys $(date)" +echo "π Starting update $(date)" # Check required tools for cmd in npx sed find grep; do if ! command -v $cmd &>/dev/null; then - echo "β οΈ Error: $cmd not found" | tee -a "$log_file" + echo "- β οΈ Error: $cmd not found" | tee -a "$log_file" exit 1 fi done @@ -42,7 +42,7 @@ find . -mindepth 1 -maxdepth 1 -type d | while read -r dir; do action="./$dir/action.yml" if [ -f "$action" ]; then - echo "π Found action.yml in $dir" + echo "- π Found action.yml in $dir" repo="ivuorinen/actions/$dir" readme="./$dir/README.md" @@ -51,35 +51,36 @@ find . -mindepth 1 -maxdepth 1 -type d | while read -r dir; do # if version doesn't exist, use 'main' if [ -z "$version" ]; then version="main" - echo "βΉοΈ Version not set in $dir/action.yml, using 'main'" + echo "- βΉοΈ Version not set in $dir/action.yml, using 'main'" fi - echo "π Updating $readme..." + echo "- π Updating $readme..." printf "# %s\n\n" "$repo" >"$readme" - echo "π Generating action documentation..." + echo "- π Generating action documentation..." if ! npx --yes action-docs@latest \ --source="$action" \ --no-banner \ --include-name-header >>"$readme"; then - echo "β οΈ Warning: action-docs failed in $dir directory" | tee -a "$log_file" + echo "- β οΈ Warning: action-docs failed in $dir directory" | tee -a "$log_file" fi - echo "π Replacing placeholders in $readme..." + echo "- π Replacing placeholders in $readme..." $SED_CMD "s|PROJECT|$repo|g; s|VERSION|$version|g; s|\*\*\*||g" "$readme" if [ -f "$readme.bak" ]; then rm "$readme.bak" - echo "ποΈ Removed $readme.bak" + echo "- ποΈ Removed $readme.bak" fi else # if action doesn't exist, skip - echo "β© Skipping $dir - action.yml missing" + echo "- β© Skipping $dir - action.yml missing" fi ) || { - echo "β οΈ Warning: Error processing directory $dir" | tee -a "$log_file" + echo "- β οΈ Warning: Error processing directory $dir" | tee -a "$log_file" } + echo "" done echo "" @@ -92,14 +93,21 @@ echo "" echo "β¨ Running prettier..." if ! npx --yes prettier --write \ - "run.sh" "**/README.md" "**/action.yml" ".github/workflows/*.yml"; then - echo "β οΈ Warning: prettier formatting failed" | tee -a "$log_file" + "**/README.md" "**/action.yml" ".github/workflows/*.yml"; then + echo "- β οΈ Warning: prettier formatting failed" | tee -a "$log_file" +fi +echo "" + +# Run markdown-table-formatter +echo "π Running markdown-table-formatter..." +if ! npx --yes markdown-table-formatter "**/README.md"; then + echo "- β οΈ Warning: markdown-table-formatter found issues" | tee -a "$log_file" fi echo "" echo "π Running MegaLinter..." if ! npx --yes mega-linter-runner; then - echo "β οΈ Warning: MegaLinter found issues" | tee -a "$log_file" + echo "- β οΈ Warning: MegaLinter found issues" | tee -a "$log_file" fi echo "" diff --git a/set-git-config/README.md b/set-git-config/README.md index 6f87963..cd10afc 100644 --- a/set-git-config/README.md +++ b/set-git-config/README.md @@ -8,19 +8,19 @@ Sets Git configuration for actions. ### Inputs -| name | description | required | default | -| ---------- | ----------------------------------- | -------- | --------------------------- | -| `token` |GitHub token.
| `false` | `${{ github.token }}` | -| `username` |GitHub username for commits.
| `false` | `github-actions` | -| `email` |GitHub email for commits.
| `false` | `github-actions@github.com` | +| name | description | required | default | +|--------------|----------------------------------------|----------|-----------------------------| +| `token` |GitHub token.
| `false` | `${{ github.token }}` | +| `username` |GitHub username for commits.
| `false` | `github-actions` | +| `email` |GitHub email for commits.
| `false` | `github-actions@github.com` | ### Outputs -| name | description | -| ---------- | ----------------------------------- | -| `token` |GitHub token.
| -| `username` |GitHub username for commits.
| -| `email` |GitHub email for commits.
| +| name | description | +|--------------|----------------------------------------| +| `token` |GitHub token.
| +| `username` |GitHub username for commits.
| +| `email` |GitHub email for commits.
| ### Runs diff --git a/set-git-config/action.yml b/set-git-config/action.yml index f1b3d12..307c48d 100644 --- a/set-git-config/action.yml +++ b/set-git-config/action.yml @@ -36,6 +36,7 @@ runs: steps: - name: Check for FIXIMUS_TOKEN id: bot + shell: bash run: | if [ -n "${{ secrets.FIXIMUS_TOKEN }}" ]; then echo "token=${{ secrets.FIXIMUS_TOKEN }}" >> $GITHUB_OUTPUT @@ -46,9 +47,9 @@ runs: echo "username=${{ inputs.username }}" >> $GITHUB_OUTPUT echo "email=${{ inputs.email }}" >> $GITHUB_OUTPUT fi - shell: bash - name: Configure Git + shell: bash run: | # Function to clean up Git config cleanup_git_config() { @@ -72,4 +73,3 @@ runs: 'git@github.com:' git config --local user.name "${{ steps.bot.outputs.username }}" git config --local user.email "${{ steps.bot.outputs.email }}" - shell: bash diff --git a/sync-labels/README.md b/sync-labels/README.md index a4a5aca..77195a2 100644 --- a/sync-labels/README.md +++ b/sync-labels/README.md @@ -9,13 +9,13 @@ Sync labels from a YAML file to a GitHub repository ### Inputs | name | description | required | default | -| -------- | ----------------------------------- | -------- | ------------ | +|----------|-------------------------------------|----------|--------------| | `labels` |Path to the labels YAML file
| `true` | `labels.yml` | ### Outputs | name | description | -| -------- | ----------------------------------- | +|----------|-------------------------------------| | `labels` |Path to the labels YAML file
| ### Runs diff --git a/sync-labels/labels.yml b/sync-labels/labels.yml index cd9aae6..afc85cc 100644 --- a/sync-labels/labels.yml +++ b/sync-labels/labels.yml @@ -1,3 +1,4 @@ +--- - name: breaking-change color: ee0701 description: A breaking change for existing users. diff --git a/terraform-lint-fix/README.md b/terraform-lint-fix/README.md index bb9514f..2af713a 100644 --- a/terraform-lint-fix/README.md +++ b/terraform-lint-fix/README.md @@ -9,7 +9,7 @@ Lints and fixes Terraform files with advanced validation and security checks. ### Inputs | name | description | required | default | -| ------------------- | -------------------------------------------------------------- | -------- | ------------- | +|---------------------|----------------------------------------------------------------|----------|---------------| | `terraform-version` |Terraform version to use
| `false` | `latest` | | `tflint-version` |TFLint version to use
| `false` | `latest` | | `working-directory` |Directory containing Terraform files
| `false` | `.` | @@ -22,7 +22,7 @@ Lints and fixes Terraform files with advanced validation and security checks. ### Outputs | name | description | -| ------------- | -------------------------------- | +|---------------|----------------------------------| | `error-count` |Number of errors found
| | `fixed-count` |Number of issues fixed
| | `sarif-file` |Path to SARIF report file
|