summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas O'Donnell <andytom@users.noreply.github.com>2022-01-21 18:19:56 +0100
committerGitHub <noreply@github.com>2022-01-21 11:19:56 -0600
commit31ab8aa0c58f18fdbcd113cef260c90cd7ce2726 (patch)
tree88aaeac5deadb17e2d395b85b44a7c241ba9b181
parent68be67b0be413bbcbc9711c6a3e796027c7e9f09 (diff)
ci: Fix failing CI jobs (#3481)
Have updated the workflow to only run the "Block Translated Changes" job on PRs since it will fail when run on pushes to a branch. Have fixed the formatting while I was here.
-rw-r--r--.github/workflows/format-workflow.yml6
-rw-r--r--docs/config/README.md18
2 files changed, 12 insertions, 12 deletions
diff --git a/.github/workflows/format-workflow.yml b/.github/workflows/format-workflow.yml
index 420813e7f..73f906d83 100644
--- a/.github/workflows/format-workflow.yml
+++ b/.github/workflows/format-workflow.yml
@@ -1,9 +1,10 @@
+---
name: Format + Docs Workflow
on:
push:
- paths: ["docs/**","**.md","**.toml","**.js","**.json","**.ts"]
+ paths: ["docs/**", "**.md", "**.toml", "**.js", "**.json", "**.ts"]
pull_request:
- paths: ["docs/**","**.md","**.toml","**.js","**.json","**.ts"]
+ paths: ["docs/**", "**.md", "**.toml", "**.js", "**.json", "**.ts"]
jobs:
# Run the dprint code formatter for documentation
@@ -20,6 +21,7 @@ jobs:
block-crowdin:
name: Block Translated Changes
runs-on: ubuntu-latest
+ if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Prevent File Change
uses: xalvarez/prevent-file-change-action@v1.2.0
diff --git a/docs/config/README.md b/docs/config/README.md
index ad1e16c3e..e65a28df0 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -677,26 +677,24 @@ format = "[$symbol$environment](dimmed green) "
The `container` module displays a symbol and container name, if inside a container.
-
### Options
-| Option | Default | Description |
-|------------|-----------------------------------|-------------------------------------------|
-| `symbol` | `"⬢"` | The symbol shown, when inside a container |
-| `style` | `"bold red dimmed"` | The style for the module. |
-| `format` | "[$symbol \\[$name\\]]($style) " | The format for the module. |
-| `disabled` | `false` | Disables the `container` module. |
-
+| Option | Default | Description |
+| ---------- | -------------------------------- | ----------------------------------------- |
+| `symbol` | `"⬢"` | The symbol shown, when inside a container |
+| `style` | `"bold red dimmed"` | The style for the module. |
+| `format` | "[$symbol \\[$name\\]]($style) " | The format for the module. |
+| `disabled` | `false` | Disables the `container` module. |
### Variables
| Variable | Example | Description |
-|----------|---------------------|--------------------------------------|
+| -------- | ------------------- | ------------------------------------ |
| name | `fedora-toolbox:35` | The name of the container |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
-\*: This variable can only be used as a part of a style string
+*: This variable can only be used as a part of a style string
### Example