Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Deprecation warning for setup action #301

Merged
merged 4 commits into from
Sep 30, 2023
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
File renamed without changes.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

A Collection of GitHub actions for interacting with Haskell.

| Action |
| ---------------------------------- |
| [`haskell/actions/setup`](./setup) |
| [`haskell/actions/hlint-setup`](./hlint-setup) |
| [`haskell/actions/hlint-run`](./hlint-run) |
**NOTE: This repository is winding down.**

| DEPRECATED action | Replaced by
| ---------------------------------- | ---------------
| [`haskell/actions/setup`](./setup) | [`haskell-actions/setup`](https://github.com/haskell-actions/setup)
| [`haskell/actions/hlint-setup`](./hlint-setup) | [`haskell-actions/hlint-setup`](https://github.com/haskell-actions/hlint-setup)
| [`haskell/actions/hlint-run`](./hlint-run) | [`haskell-actions/hlint-run`](https://github.com/haskell-actions/hlint-run)
| |

See the individual action directory for details on usage and examples.
30 changes: 30 additions & 0 deletions hlint-run/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,36 @@ import run from './run';
import setOutputs from './outputs';

export default async function main() {
core.warning(
'As of 2023-09-30, haskell/action/hlint-run is no longer maintained, please switch to haskell-actions/hlint-run (note: dash for slash).'
);
core.info(
`***************************************************************************`
);
core.info(
`** **`
);
core.info(
`** This action is DEPRECATED. **`
);
core.info(
`** **`
);
core.info(
`** Please use haskell-actions/hlint-run instead. **`
);
core.info(
`** **`
);
core.info(
`** (Note the dash instead of the slash.) **`
);
core.info(
`** **`
);
core.info(
`***************************************************************************`
);
try {
const inputs = getInputs();
const result = await core.group('hlint', () => run(inputs));
Expand Down
30 changes: 30 additions & 0 deletions hlint-setup/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,36 @@ const OUTPUT_KEY_HLINT_PATH = 'hlint-bin';
const OUTPUT_KEY_HLINT_VERSION = 'version';

async function run() {
core.warning(
'As of 2023-09-30, haskell/action/hlint-setup is no longer maintained, please switch to haskell-actions/hlint-setup (note: dash for slash).'
);
core.info(
`***************************************************************************`
);
core.info(
`** **`
);
core.info(
`** This action is DEPRECATED. **`
);
core.info(
`** **`
);
core.info(
`** Please use haskell-actions/hlint-setup instead. **`
);
core.info(
`** **`
);
core.info(
`** (Note the dash instead of the slash.) **`
);
core.info(
`** **`
);
core.info(
`***************************************************************************`
);
try {
const hlintVersion = core.getInput(INPUT_KEY_HLINT_VERSION) || HLINT_DEFAULT_VERSION;
const config = mkHlintReleaseConfig(process.platform, os.arch(), hlintVersion);
Expand Down
Loading
Loading