Skip to content

Commit

Permalink
Merge pull request #506 from rtyley/patch-1
Browse files Browse the repository at this point in the history
Add link to docs on how to run locally to attach a JVM debugger
  • Loading branch information
alejandrohdezma authored Jun 30, 2023
2 parents 916e71f + 84d44d7 commit c5e82c2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ By default, Scala Steward will ignore "opts" files (such as `.jvmopts` or `.sbto
<br/>
</details>

<details><summary><b>Run Scala Steward in debug mode</b></summary><br/>
<details><summary><b>Run Scala Steward with step debug logging</b></summary><br/>

You just need to enable [GitHub Actions' "step debug logging"](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging) and Scala Steward will start automatically in debug mode too.

Expand All @@ -443,6 +443,17 @@ For this you must set the following secret in the repository that contains the w
<br/>
</details>

<details><summary><b>Running locally to attach a JVM debugger</b></summary><br/>

When debugging the behaviour of Scala Steward, it can be helpful to run Scala Steward
locally, while mimicking the settings used by the Scala Steward GitHub Action, so that
a debugger can be attached - [the Guardian have notes on how they do that](https://github.com/guardian/scala-steward-public-repos/blob/main/running-locally.md),
which may provide a helpful example if you need to do that in your own organisation.

<br/>
</details>


<details><summary><b>Using the default GitHub Action Token (instead of the GitHub App)</b></summary><br/>

If for any reason you want to use the default GitHub Token available in GitHub Actions, you won't be able to use the `github-app-*` inputs. Also beware that if you use the default github-token [no workflows will run](https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#using-the-github_token-in-a-workflow) on Scala Steward PRs. If you still want to use it you just need to remove all the `github-app-*` inputs and follow either the `Updating a specific repository` or the `Update specific repositories (listed on a file)` guides to provide a repository to update.
Expand Down

0 comments on commit c5e82c2

Please sign in to comment.