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.
This commit is contained in:
parent
68be67b0be
commit
31ab8aa0c5
|
@ -1,9 +1,10 @@
|
||||||
|
---
|
||||||
name: Format + Docs Workflow
|
name: Format + Docs Workflow
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths: ["docs/**","**.md","**.toml","**.js","**.json","**.ts"]
|
paths: ["docs/**", "**.md", "**.toml", "**.js", "**.json", "**.ts"]
|
||||||
pull_request:
|
pull_request:
|
||||||
paths: ["docs/**","**.md","**.toml","**.js","**.json","**.ts"]
|
paths: ["docs/**", "**.md", "**.toml", "**.js", "**.json", "**.ts"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Run the dprint code formatter for documentation
|
# Run the dprint code formatter for documentation
|
||||||
|
@ -20,6 +21,7 @@ jobs:
|
||||||
block-crowdin:
|
block-crowdin:
|
||||||
name: Block Translated Changes
|
name: Block Translated Changes
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Prevent File Change
|
- name: Prevent File Change
|
||||||
uses: xalvarez/prevent-file-change-action@v1.2.0
|
uses: xalvarez/prevent-file-change-action@v1.2.0
|
||||||
|
|
|
@ -677,26 +677,24 @@ format = "[$symbol$environment](dimmed green) "
|
||||||
|
|
||||||
The `container` module displays a symbol and container name, if inside a container.
|
The `container` module displays a symbol and container name, if inside a container.
|
||||||
|
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
|------------|-----------------------------------|-------------------------------------------|
|
| ---------- | -------------------------------- | ----------------------------------------- |
|
||||||
| `symbol` | `"⬢"` | The symbol shown, when inside a container |
|
| `symbol` | `"⬢"` | The symbol shown, when inside a container |
|
||||||
| `style` | `"bold red dimmed"` | The style for the module. |
|
| `style` | `"bold red dimmed"` | The style for the module. |
|
||||||
| `format` | "[$symbol \\[$name\\]]($style) " | The format for the module. |
|
| `format` | "[$symbol \\[$name\\]]($style) " | The format for the module. |
|
||||||
| `disabled` | `false` | Disables the `container` module. |
|
| `disabled` | `false` | Disables the `container` module. |
|
||||||
|
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
|
|
||||||
| Variable | Example | Description |
|
| Variable | Example | Description |
|
||||||
|----------|---------------------|--------------------------------------|
|
| -------- | ------------------- | ------------------------------------ |
|
||||||
| name | `fedora-toolbox:35` | The name of the container |
|
| name | `fedora-toolbox:35` | The name of the container |
|
||||||
| symbol | | Mirrors the value of option `symbol` |
|
| symbol | | Mirrors the value of option `symbol` |
|
||||||
| style\* | | Mirrors the value of option `style` |
|
| 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
|
### Example
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue