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. In your repository settings, [add the following secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets):
105
-
- `CLEVER_TOKEN`: the `token` value in the credentials
106
-
- `CLEVER_SECRET`: the `secret` value in the credentials
105
+
106
+
- `CLEVER_TOKEN`: the `token` value in the credentials
107
+
- `CLEVER_SECRET`: the `secret` value in the credentials
107
108
108
109
## Extra Environment Variables
109
110
@@ -121,7 +122,7 @@ key=value).
121
122
EGG=spam
122
123
# ^-- ..and the indentation here
123
124
env:
124
-
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
125
+
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
125
126
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
126
127
```
127
128
@@ -158,7 +159,7 @@ regardless of the deployment status:
158
159
with:
159
160
timeout: 1800 # wait at maximum 30 minutes before moving on
160
161
env:
161
-
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
162
+
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
162
163
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
163
164
```
164
165
@@ -180,7 +181,10 @@ Clever Cloud uses a Git remote to perform deploys. By default, if the commit you
180
181
181
182
## Same Commit Policy
182
183
184
+
> Support: introduced in v2.1.0
185
+
183
186
When the local and remote commits are identical, you can control what happens using the `sameCommitPolicy` option. Possible values are:
187
+
184
188
- `error` (default): Fail the deployment
185
189
- `ignore`: Skip the deployment silently
186
190
- `restart`: Restart the application without redeploying
@@ -242,6 +246,7 @@ _Note: this behaviour will be disabled if the `quiet` option is used._
242
246
This action follows [SemVer](https://semver.org/).
- `uses: 47ng/actions-clever-cloud@3e5402496b8d6492401ebb3134acfeccc25c3fce`: pinned to a specific Git SHA-1 (check out the [releases](https://github.com/47ng/actions-clever-cloud/releases))
247
252
- `uses: docker://ghcr.io/47ng/actions-clever-cloud:latest`: latest code from master (not recommended, as it may break: hic sunt dracones.)
@@ -275,10 +280,11 @@ Using this action at work ? [Sponsor me](https://github.com/sponsors/franky47) t
275
280
276
281
## Deploying a Specific Directory
277
282
283
+
> Support: introduced in v2.1.0
284
+
278
285
> ⚠️ Important note about the difference between `working-directory` and `deployPath`:
279
286
>
280
287
> - `working-directory` (GitHub Actions option) : Only changes the directory where the action runs. All files remain available, only the execution context changes.
281
-
>
282
288
> - `deployPath` (this action's option) : Specifies exactly which files will be sent to Clever Cloud. Allows deploying only a subset of files, like a `dist` or `build` folder.
283
289
284
290
### Example
@@ -287,15 +293,16 @@ Using this action at work ? [Sponsor me](https://github.com/sponsors/franky47) t
0 commit comments