Skip to content

jobtrek/sw-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

SW action

This action can be used to set up SW on your GitHub action CD pipelines.

By default, the action will check your code with the same defaults as SW. You can pass specific configuration directly to SW from the action parameters.

v1.1.4

Use this action in your repository

You need to set up a workflow that :

  1. Check out the code of your repository.
  2. Run the SW-action to wipe the solutions.
  3. Copy the wiped files to a new repository or branch.
  4. Commit the changes to the new repository or branch.
  5. Make a pull request to the corresponding repository to propose the new wiped exercises.

Example action

  • Here's a simple example of a workflow that uses the SW-action to wipe the solutions of some exercises and commit the changes to another repository,
  • Here's another example wich uses a .exerciseignore to specify wich files shouldn't be copied to the new repository.

Inputs

Name Description Required Default
path The path to the directory containing the code to wipe false .
lang The languages of the code you want to wipe, separated by a comma and without spaces false rs,js,ts,java

Outputs

This action output the path to every file that has been wiped.