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
- **Windows runners**: Requires Docker to be installed (e.g., Docker Desktop, Rancher Desktop)
82
+
- **macOS runners**: Requires Docker to be installed
83
+
84
+
### Windows Runner Setup
85
+
86
+
To use this action on Windows runners, ensure Docker is available:
87
+
88
+
```yaml
89
+
jobs:
90
+
commit-changes:
91
+
runs-on: windows-latest
92
+
steps:
93
+
- name: Setup Docker (if needed)
94
+
# Most GitHub-hosted Windows runners have Docker pre-installed
95
+
# For self-hosted runners, ensure Docker Desktop is installed
96
+
97
+
- name: Checkout repository
98
+
uses: actions/checkout@v4
99
+
100
+
- name: Commit and push changes
101
+
uses: devops-infra/action-commit-push@master
102
+
with:
103
+
github_token: ${{ secrets.GITHUB_TOKEN }}
104
+
commit_message: "Cross-platform commit from Windows"
105
+
```
106
+
107
+
### Note
108
+
The action automatically detects the platform and uses Docker accordingly. On all platforms, it runs the same containerized environment to ensure consistent behavior.
109
+
110
+
74
111
## Examples
75
112
76
113
Commit and push changes to currently checked out branch.
0 commit comments