You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Docker container is available in Ubuntu and Windows but not macOS in GitHub Actions due to license issues.
55
-
To use Docker in macOS in GitHub Actions,
56
-
you have to install it manually.
57
-
Please refer to
58
-
[Is it possible to install and configure Docker on MacOS runner?](https://github.community/t/is-it-possible-to-install-and-configure-docker-on-macos-runner/16981)
59
-
for more details.
60
-
61
43
5. Good practices for GitHub repository with GitHub Actions workflows:
62
44
- Have 2 protected branches `main` and `dev`,
63
45
where `main` is reserved for releasing
@@ -66,20 +48,6 @@ Modified: 2025-11-21 09:23:02
66
48
- A PR from `dev` to `main` should be made
67
49
when it is ready to release a new version.
68
50
69
-
## Issues and Solutions
70
-
71
-
### Error: The process '/usr/bin/git' failed with exit code 1
72
-
73
-
Sympton: A GitHub Actions workflow fail to checkout a branch of a repository
74
-
and throws the following error message.
75
-
76
-
> Error: The process '/usr/bin/git' failed with exit code 1
77
-
78
-
Possible Causes and Solutions: It's possible that you use a branch name
79
-
(e.g., used `main` while the repo does not have a `main` branch) which does not exist.
80
-
If so,
81
-
use the correct branch name might fix the issue.
82
-
83
51
## Branch Matching
84
52
85
53
on:
@@ -97,23 +65,6 @@ and
97
65
[Workflow syntax for GitHub Actions](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions)
Prepends a directory to the system PATH variable for all subsequent actions in the current job. The currently running action cannot access the new path variable.
Prepends a directory to the system PATH variable for all subsequent actions in the current job. The currently running action cannot access the new path variable.
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
11
+
12
+
## Tips & Traps
13
+
14
+
1. Docker container is available in Ubuntu and Windows but not macOS in GitHub Actions due to license issues.
15
+
To use Docker in macOS in GitHub Actions,
16
+
you have to install it manually.
17
+
Please refer to
18
+
[Is it possible to install and configure Docker on MacOS runner?](https://github.community/t/is-it-possible-to-install-and-configure-docker-on-macos-runner/16981)
19
+
for more details.
20
+
21
+
2. The `runner` account (even with `sudo`) in GitHub Actions VMs
22
+
have restricted priviledges.
23
+
For example,
24
+
the Linux perf (and equivalent) tools cannot be run in GitHub Actions VMs
25
+
even if `sudo` is used.
26
+
Docker containers running in GitHub Actions VMs are restricted too.
27
+
For more details,
28
+
please refer to
29
+
[Supported Linux capabilities](https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#supported-linux-capabilities)
0 commit comments