Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation revamp #443

Merged
merged 9 commits into from
Dec 26, 2022
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
21 changes: 20 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,26 @@
"contributions": [
"doc"
]
},
{
"login": "ckipp01",
"name": "Chris Kipp",
"avatar_url": "https://avatars.githubusercontent.com/u/13974112?v=4",
"profile": "https://chris-kipp.io/",
"contributions": [
"bug",
"code"
]
},
{
"login": "regadas",
"name": "Filipe Regadas",
"avatar_url": "https://avatars.githubusercontent.com/u/163899?v=4",
"profile": "https://regadas.dev/",
"contributions": [
"doc"
]
}
],
"contributorsPerLine": 7
"contributorsPerLine": 6
}
22 changes: 21 additions & 1 deletion .github/workflows/release_auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:
- master

jobs:
tag:
new-release:
name: Create new release
runs-on: ubuntu-latest
steps:
- name: Checkout project
Expand All @@ -36,3 +37,22 @@ jobs:
uses: int128/release-typescript-action@8fe76ff937d9a322c48a9ccc2e33fb5731ea80d0 # v1.18.0
with:
major-version: 2

update-docs:
name: Update documentation
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
with:
fetch-depth: 0
ref: master

- name: Run `npm run docs`
run: npm run docs

- name: Commit changes by `npm run docs`
uses: alejandrohdezma/actions/commit-and-push@v1
with:
message: Run `npm run docs` [skip ci]
branch: master
804 changes: 532 additions & 272 deletions README.md

Large diffs are not rendered by default.

195 changes: 132 additions & 63 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,94 +1,163 @@
name: "Scala Steward GitHub Action"
author: alejandrohdezma
description: "🤖 A bot that helps you keeping your Scala projects up-to-date "
name: Scala Steward GitHub Action
author: The Scala Steward contributors
description: 🤖 A bot that helps you keeping your Scala projects up-to-date
branding:
icon: arrow-up-circle
color: red

inputs:
repos-file:
description: "Path to a file containing the list of repositories to update in markdown format (- owner/repo)"
required: false
github-repository:
description: "Repository to update. The current repository will be used by default"
required: false
default: ${{ github.repository }}
github-token:
description: "GitHub Personal Access Token with permission to create branches on repo"
artifact-migrations:
description: |
Artifact migrations for newer versions of artifacts with
different group Ids, artifact ids, or both different.

Expects the path to HOCON file with migration/s.

See https://github.com/scala-steward-org/scala-steward/blob/main/docs/artifact-migrations.md
required: false
default: ${{ github.token }}
author-email:
description: Author email address to use in commits
description: |
Author email address to use in commits. If set it will
override any email retrieved from GitHub.
required: false
author-name:
description: Author name to use in commits
required: false
scala-steward-version:
description: "Scala Steward version to use"
required: false
coursier-cli-url:
description: "Url to download the coursier linux CLI from"
default: "https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz"
required: false
ignore-opts-files:
description: 'Whether to ignore "opts" files (such as `.jvmopts` or `.sbtopts`) when found on repositories or not'
default: "true"
description: |
Author name to use in commits. If set it will override
any name retrieved from GitHub.
required: false
branches:
description: A comma-separated list of branches to update (if not provided, the repository's default branch will be
updated instead). This option only has effect if updating the current repository or using the `github-repository` input.
required: false
sign-commits:
description: "Whether to sign commits or not"
default: "false"
required: false
signing-key:
description: "Key ID of GPG key to use for signing commits."
default: ""
required: false
timeout:
description: "Timeout for external process invocations"
default: "20min"
description: |
A comma-separated list of branches to update (if not
provided, the repository's default branch will be
updated instead).

This option only has effect if updating the current
repository or using the `github-repository` input.
required: false
cache-ttl:
description: "TTL of cache for fetching dependency versions and metadata, set it to 0s to disable it"
default: "2hours"
required: false
github-api-url:
description: "The URL of the GitHub API, only use this input if you are using GitHub Enterprise"
default: "https://api.github.com"
description: |
TTL of cache for fetching dependency versions and
metadata, set it to 0s to disable it.
default: 2hours
required: false
scalafix-migrations:
description: "https://github.com/scala-steward-org/scala-steward/blob/5dafbcd522a0465af7fbbaf4304d48a7b25e3516/docs/scalafix-migrations.md"
coursier-cli-url:
description: |
Url to download the coursier linux CLI from.
default: https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz
required: false
artifact-migrations:
description: "https://github.com/scala-steward-org/scala-steward/blob/5dafbcd522a0465af7fbbaf4304d48a7b25e3516/docs/artifact-migrations.md"
github-api-url:
description: |
The URL of the GitHub API, only use this input if
you are using GitHub Enterprise.
default: https://api.github.com
required: false
github-app-auth-only:
description: >
If set to `true` the GitHub App information will only be used for authentication. Repositories to update will be read
from the `repos-file` or the `github-repository` inputs.
description: |
If set to `true` the GitHub App information will
only be used for authentication.

Repositories to update will be read from either
the `repos-file` or the `github-repository` inputs.
default: "false"
required: false
github-app-id:
description: "GitHub application ID"
description: |
GitHub App ID. See the "Installation" section of the
README to learn how to set up the app and how to fill this input.
required: false
github-app-installation-id:
description: "GitHub App Installation ID"
description: |
GitHub App Installation ID. See the "Installation"
section of the README to learn how to set up the app
and how to fill this input.
required: false
github-app-key:
description: "GitHub application private key"
description: |
GitHub App Private Key. See the "Installation" section
of the README to learn how to set up the app and how to
fill this input.
required: false
github-repository:
description: |
Repository to update. Will be ignored if either
`repos-file` is provided or the `github-app-*`
inputs are and `github-app-auth-only` is not `true`.
required: false
default: ${{ github.repository }}
github-token:
description: |
GitHub Personal Access Token with permission to create
branches on repo.

If `github-app-*` inputs are provided an App's
installation token will be used instead of this one.
required: false
default: ${{ github.token }}
ignore-opts-files:
description: |
Whether to ignore "opts" files (such as `.jvmopts`
or `.sbtopts`) when found on repositories or not.
default: "true"
required: false
other-args:
description: |
Other Scala Steward arguments not yet supported by
this action as a separate argument.
required: false
repo-config:
description: "Location of a `.scala-steward.conf` file with default values"
description: |
Location of a `.scala-steward.conf` file with default
values.

If the provided file is missing the action will fail.
default: ".github/.scala-steward.conf"
required: false
other-args:
description: "Other Scala Steward arguments not yet supported by this action as a separate argument"
repos-file:
description: |
Path to a file containing the list of repositories
to update in markdown format:

- owner/repo1
- owner/repo2

This input will be ignored if the `github-app-*`
inputs are provided and `github-app-auth-only` is
not `true`.
required: false
scala-steward-version:
description: |
Scala Steward version to use. If not provided it
will use the last one published.
required: false
scalafix-migrations:
description: |
Scalafix rules for version updates to run after
certain updates.

Expects the path to HOCON file with migration/s.

See https://github.com/scala-steward-org/scala-steward/blob/main/docs/scalafix-migrations.md
required: false
sign-commits:
description: |
Whether to sign commits or not.
default: "false"
required: false
signing-key:
description: |
Key ID of GPG key to use for signing commits. See the
"Signing commits with GPG" section to learn how to
prepare the environment and fill this input.
default: ""
required: false
timeout:
description: |
Timeout for external process invocations.
default: 20min
required: false

runs:
using: "node16"
pre: "dist/pre.js"
main: "dist/main.js"
post: "dist/post.js"
using: node16
pre: dist/pre.js
main: dist/main.js
post: dist/post.js
Binary file removed data/images/example-pr.png
Binary file not shown.
Loading