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

Commit

Permalink
haskell/actions/* actions are deprecated (#301)
Browse files Browse the repository at this point in the history
The `haskell/actions/*` actions are deprecated.  Use `haskell-actions/*` instead.

Commits:
* Deprecation warning for setup action
* Proper deprecation warning for setup action
* Turn off dependabot since repo is unmaintained
* Deprecation warnings for `hlint-setup` and `hlint-run`
  • Loading branch information
andreasabel authored Sep 30, 2023
1 parent 0249dc7 commit ce6c3a6
Show file tree
Hide file tree
Showing 7 changed files with 8,472 additions and 8,314 deletions.
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

0 comments on commit ce6c3a6

Please sign in to comment.