Skip to content
Open
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
22 changes: 22 additions & 0 deletions docs/docs/getting-started/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,28 @@ This happens when the repository receives pushed while Semaphore is still proces

You can prevent this error by enabling the [auto-cancel](../using-semaphore/pipelines#auto-cancel) option in the pipeline.

### How do I fix the error "Type mismatch. Expected String but got Boolean."
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding this because of experimention, related to the original commit.


This usually happens when a YAML value inside a `commands:` list is interpreted as a boolean instead of a shell command string.

For example, this is invalid:

```yaml
commands:
- false
```

YAML parses `false` as a boolean value, but Semaphore expects each item in `commands:` to be a string.

Use quotes instead:

```yaml
commands:
- "false"
```

This tells YAML to treat `false` as the shell command name rather than a boolean literal.

### Why are my workflows not running in parallel?

Git pushes to the same branch are [queued](../using-semaphore/pipelines#pipeline-queues) by default. Pushes to different branches do run in parallel. You can use [named queues in your pipelines](../using-semaphore/pipelines#named-queues) to better control how workflows are parallelized or activate [auto-cancel](../using-semaphore/pipelines#auto-cancel) to stop running pipelines when new pushes arrive to the queue.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/using-semaphore/jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ blocks:
jobs:
- name: 'Job #1'
commands:
- echo "hello, world!"'
- echo "hello, world!"
- echo "add as many commands as you like"
```

Expand Down
7 changes: 3 additions & 4 deletions docs/docs/using-semaphore/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ After installing and connecting the [Semaphore command line](../reference/semaph
2. Run `sem init` at the root of the repository
3. Push a change to get Semaphore working

```shell title="Push pipeline to the repository
```shell title="Push pipeline to the repository"
git add .semaphore
git commit "Initialize Semaphore"
git commit -m "Initialize Semaphore"
git push origin main
```

Expand All @@ -98,7 +98,7 @@ You can override the project name and URL by using [additional options](../refer
sem init --project-name <project_name> --project-url <project_url>
```

If you get permission or not find error message, double check the connection between Semaphore and your Git provider:
If you get a permission or not found error message, double check the connection between Semaphore and your Git provider:

- [How to connect to GitHub](./connect-github)
- [How to connect to Bitbucket](./connect-bitbucket)
Expand Down Expand Up @@ -626,4 +626,3 @@ After changing the repository URL, verify that the **deploy key** and **webhook*
- [Organization pre-flight checks](./org-preflight)
- [How to manage organizations](./organizations.md)
- [How to configure test reports](./tests/test-reports)