diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 949792b..0da2fac 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,11 +11,6 @@ updates: - dependencies - github-actions schedule: - interval: weekly - - package-ecosystem: nuget # See documentation for possible values - directory: / # Location of package manifests - labels: - - dependencies - - nuget - schedule: - interval: weekly + interval: daily + cooldown: + default-days: 7 diff --git a/.github/release.yml b/.github/release.yml deleted file mode 100644 index 35c6ae8..0000000 --- a/.github/release.yml +++ /dev/null @@ -1,18 +0,0 @@ -# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes - -changelog: - exclude: - labels: - - NoRelease - categories: - - title: 🌟 Breaking Changes - labels: - - Major - - Breaking - - title: 🚀 New Features - labels: - - Minor - - Feature - - title: Other Changes - labels: - - '*' diff --git a/.github/workflows/Action-Test.yml b/.github/workflows/Action-Test.yml index 61b44b8..d494a1f 100644 --- a/.github/workflows/Action-Test.yml +++ b/.github/workflows/Action-Test.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Auto-Release.yml index 892e520..daeed4c 100644 --- a/.github/workflows/Auto-Release.yml +++ b/.github/workflows/Auto-Release.yml @@ -3,7 +3,7 @@ name: Auto-Release run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}" on: - pull_request_target: + pull_request: branches: - main types: @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 44392aa..cf13018 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -19,15 +19,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false fetch-depth: 0 - name: Lint code base - uses: super-linter/super-linter@latest + uses: super-linter/super-linter@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2 env: GITHUB_TOKEN: ${{ github.token }} + VALIDATE_BIOME_FORMAT: false VALIDATE_JSON_PRETTIER: false VALIDATE_MARKDOWN_PRETTIER: false VALIDATE_YAML_PRETTIER: false diff --git a/README.md b/README.md index a892a3e..7118218 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Auto-Release follows: - [SemVer 2.0.0 specifications](https://semver.org) - [GitHub Flow specifications](https://docs.github.com/en/get-started/using-github/github-flow) -- [Continiuous Delivery practices](https://en.wikipedia.org/wiki/Continuous_delivery) +- [Continuous Delivery practices](https://en.wikipedia.org/wiki/Continuous_delivery) ## How it works @@ -39,14 +39,14 @@ The action can be configured using the following settings: | Name | Description | Default | Required | | --- | --- | --- | --- | -| `AutoCleanup`| Control wether to automatically cleanup prereleases. If disabled, the action will not remove any prereleases. | `true` | false | -| `AutoPatching` | Control wether to automatically handle patches. If disabled, the action will only create a patch release if the pull request has a 'patch' label. | `true` | false | +| `AutoCleanup` | Control whether to automatically cleanup prereleases. If disabled, the action will not remove any prereleases. | `true` | false | +| `AutoPatching` | Control whether to automatically handle patches. If disabled, the action will only create a patch release if the pull request has a 'patch' label. | `true` | false | | `ConfigurationFile` | The path to the configuration file. Settings in the configuration file take precedence over the action inputs. | `.github\auto-release.yml` | false | -| `CreateMajorTag` | Control wether to create a tag for major releases. | `true` | false | -| `CreateMinorTag` | Control wether to create a tag for minor releases. | `true` | false | +| `CreateMajorTag` | Control whether to create a tag for major releases. | `true` | false | +| `CreateMinorTag` | Control whether to create a tag for minor releases. | `true` | false | | `DatePrereleaseFormat` | The format to use for the prerelease number using [.NET DateTime format strings](https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings). | `''` | false | | `IgnoreLabels` | A comma separated list of labels that do not trigger a release. | `NoRelease` | false | -| `IncrementalPrerelease` | Control wether to automatically increment the prerelease number. If disabled, the action will ensure only one prerelease exists for a given branch. | `true` | false | +| `IncrementalPrerelease` | Control whether to automatically increment the prerelease number. If disabled, the action will ensure only one prerelease exists for a given branch. | `true` | false | | `MajorLabels` | A comma separated list of labels that trigger a major release. | `major, breaking` | false | | `MinorLabels` | A comma separated list of labels that trigger a minor release. | `minor, feature` | false | | `PatchLabels` | A comma separated list of labels that trigger a patch release. | `patch, fix` | false | @@ -54,7 +54,7 @@ The action can be configured using the following settings: | `UsePRBodyAsReleaseNotes` | When enabled, uses the pull request body as the release notes for the GitHub release. | `true` | false | | `UsePRTitleAsNotesHeading` | When enabled, the release notes will begin with the pull request title as a H1 heading followed by the pull request body. The title will include a reference to the PR number. | `true` | false | | `VersionPrefix` | The prefix to use for the version number. | `v` | false | -| `WhatIf` | Control wether to simulate the action. If enabled, the action will not create any releases. Used for testing. | `false` | false | +| `WhatIf` | Control whether to simulate the action. If enabled, the action will not create any releases. Used for testing. | `false` | false | | `Debug` | Enable debug output. | `'false'` | false | | `Verbose` | Enable verbose output. | `'false'` | false | | `Version` | Specifies the exact version of the GitHub module to install. | | false | diff --git a/action.yml b/action.yml index 1d719ea..cc1538a 100644 --- a/action.yml +++ b/action.yml @@ -7,11 +7,11 @@ branding: inputs: AutoCleanup: - description: Control wether to automatically delete the prerelease tags after the stable release is created. + description: Control whether to automatically delete the prerelease tags after the stable release is created. required: false default: 'true' AutoPatching: - description: Control wether to automatically handle patches. If disabled, the action will only create a patch release if the pull request has a 'patch' label. + description: Control whether to automatically handle patches. If disabled, the action will only create a patch release if the pull request has a 'patch' label. required: false default: 'true' ConfigurationFile: @@ -19,11 +19,11 @@ inputs: required: false default: .github\auto-release.yml CreateMajorTag: - description: Control wether to create a major tag when a pull request is merged into the main branch. + description: Control whether to create a major tag when a pull request is merged into the main branch. required: false default: 'true' CreateMinorTag: - description: Control wether to create a minor tag when a pull request is merged into the main branch. + description: Control whether to create a minor tag when a pull request is merged into the main branch. required: false default: 'true' DatePrereleaseFormat: @@ -35,7 +35,7 @@ inputs: required: false default: NoRelease IncrementalPrerelease: - description: Control wether to automatically increment the prerelease number. If disabled, the action will ensure only one prerelease exists for a given branch. + description: Control whether to automatically increment the prerelease number. If disabled, the action will ensure only one prerelease exists for a given branch. required: false default: 'true' MajorLabels: @@ -94,7 +94,7 @@ runs: using: composite steps: - name: Auto-Release - uses: PSModule/GitHub-Script@v1 + uses: PSModule/GitHub-Script@e827bea46d70eebc668bdd59e4654e0846177da4 # v1.7.9 env: PSMODULE_AUTO_RELEASE_INPUT_AutoCleanup: ${{ inputs.AutoCleanup }} PSMODULE_AUTO_RELEASE_INPUT_AutoPatching: ${{ inputs.AutoPatching }}