Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Disable creating a new, blank issue without a template

blank_issues_enabled: false
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Suggest an idea for this project
labels:
- feature request
- needs triage
# assignees:
# assignees: ""
body:
- type: textarea
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Add link to the related issue.

### Check list
- [ ] Mark if documentation changes are required.
- [ ] Mark if tests were added or updated to cover the changes.
- [ ] Mark if tests were added or updated to cover the changes.
2 changes: 1 addition & 1 deletion .github/workflows/basic-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Basic validation
#
# Validates that the code is well-formatted, builds successfully
# Validates that the code is well-formatted, builds successfully,
# passes unit tests, and has no open security vulnerabilities
######################################################################

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ jobs:
- name: Compare the expected and actual dist directories
id: diff
run: "LINE_DIFF=$(git diff --ignore-space-at-eol --ignore-all-space ./dist | wc -l)\nif [ \"$LINE_DIFF\" -gt \"0\" ]; then\n echo \"Detected uncommitted changes after the build ($LINE_DIFF). See the status below:\"\n git diff --ignore-space-at-eol --ignore-all-space \n exit 1\nfi\n"
# If inners of the dist directory were different than expected,
# If inners of the dist directory were different from expected,
# upload the generated code as an artifact for comparison
- name: Upload artifact
if: ${{failure() && steps.diff.conclusion == 'failure'}}
uses: actions/upload-artifact@v6
with:
name: dist
path: ./dist
retention-days: 1
3 changes: 1 addition & 2 deletions .github/workflows/license-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# Validates the licenses for the dependencies of the project to
# ensure that they are using an approved license. This relies on the
# .github/dependency-review-config.yml and the licensed.yml files
# .github/dependency-review-config.yml and the .licensed.yml files
# for the configurations.
#
######################################################################
Expand Down Expand Up @@ -47,5 +47,4 @@ jobs:
run: licensed status
- name: Dependabot license Check
if: ${{ github.event_name == 'pull_request' }}

uses: actions/dependency-review-action@v4
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The `setup-flyway` action installs the [Redgate Flyway](https://www.red-gate.com
- `token` - A personal access token (PAT) to be used in conjunction with the `email` parameter. This is used to license Flyway to access Teams or Enterprise features.

> [!NOTE]
> The Flyway CLI supports `windows-x64`, `linux-x64`, `macosx-arm64`, `macosx-x64`, and `linux-alpine-x64` platforms.
> The Flyway CLI supports the `windows-x64`, `linux-x64`, `macosx-arm64`, `macosx-x64`, and `linux-alpine-x64` platforms.
> For all other platforms, the Java version of the Flyway CLI should be used.

### Basic Configuration
Expand Down Expand Up @@ -68,7 +68,7 @@ The `setup-flyway` action installs the [Redgate Flyway](https://www.red-gate.com
#### Supported version syntax

The `version` input supports an exact version or a version range using [SemVer](https://semver.org/) notation:
- major versions: `9`, `10`
- major versions: `9`, `10`, `11`, `12`
- more specific versions: `10.11`, `10.12.0`, `10.13.x`
- the current version: `latest`

Expand Down
19 changes: 10 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
name: 'Setup Redgate Flyway'
description: 'Set up a specific version of Flyway and add the command-line tools to the PATH'
description: 'Set up Flyway and add the command-line to the PATH'
author: 'Redgate'

branding:
icon: database
color: red

inputs:
version:
description: The version specification
default: latest
edition:
description: The Flyway edition to use. Must be one of 'community', 'teams', or 'enterprise'.
required: true
i-agree-to-the-eula:
description: Confirm you consent to the EULA found at https://www.red-gate.com/eula.
required: true
architecture:
description: The target platform architecture. Defaults to the current platform's architecture.
platform:
Expand All @@ -18,20 +26,13 @@ inputs:
token:
description: A personal access token (PAT) to be used in conjunction with the email configuration parameter. This is used to license Flyway to access Teams or Enterprise features.
required: false
i-agree-to-the-eula:
description: Confirm you consent to the EULA found at https://www.red-gate.com/eula.
required: true
outputs:
path:
description: The path the the tool installation folder
description: The path to the tool installation folder
version:
description: The specific version installed

runs:
using: 'node24'
main: 'dist/index.js'
post: 'dist/cleanup.js'

branding:
icon: database
color: red
Loading