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
| `environment` | Set the environment for this release. E.g. "production" or "staging". Omit to skip adding deploy to release. |-|
71
-
| `inject` | Injects Debug IDs into source files and sourcemaps. We **strongly recommend enabling** this to ensure proper un-minifaction of your stacktraces. |`false`|
72
80
| `sourcemaps` | Space-separated list of paths to JavaScript sourcemaps. Omit to skip uploading sourcemaps. |-|
81
+
| `inject` | Injects Debug IDs into source files and source maps to ensure proper un-minifcation of your stacktraces. Does nothing if `sourcemaps` was not set. |`true`|
73
82
| `finalize` | When false, omit marking the release as finalized and released. |`true`|
74
83
| `ignore_missing` | When the flag is set and the previous release commit was not found in the repository, will create a release with the default commits count instead of failing the command. |`false`|
75
84
| `ignore_empty` | When the flag is set, command will not fail and just exit silently if no new commits for a given release have been found. |`false`|
@@ -88,20 +97,19 @@ Adding the following to your workflow will create a new Sentry release and tell
88
97
89
98
### Examples
90
99
91
-
- Create a new Sentry release for the `production` environment, inject Debug IDs into JavaScript source files and sourcemaps and upload them from the `./dist` directory.
100
+
- Create a new Sentry release for the `production` environment, inject Debug IDs into JavaScript source files and source maps and upload them from the `./dist` directory.
92
101
93
102
```yaml
94
-
- uses: getsentry/action-release@v1
103
+
- uses: getsentry/action-release@v3
95
104
with:
96
105
environment: 'production'
97
-
inject: true
98
106
sourcemaps: './dist'
99
107
```
100
108
101
109
- Create a new Sentry release for the `production` environment of your project at version `v1.0.1`.
102
110
103
111
```yaml
104
-
- uses: getsentry/action-release@v1
112
+
- uses: getsentry/action-release@v3
105
113
with:
106
114
environment: 'production'
107
115
version: 'v1.0.1'
@@ -110,7 +118,7 @@ Adding the following to your workflow will create a new Sentry release and tell
110
118
- Create a new Sentry release for [Self-Hosted Sentry](https://develop.sentry.dev/self-hosted/)
111
119
112
120
```yaml
113
-
- uses: getsentry/action-release@v1
121
+
- uses: getsentry/action-release@v3
114
122
env:
115
123
SENTRY_URL: https://sentry.example.com/
116
124
```
@@ -177,7 +185,7 @@ Otherwise it could fail at the `propose-version` step with the message:
Copy file name to clipboardExpand all lines: action.yml
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,12 @@ inputs:
6
6
environment:
7
7
description: 'Set the environment for this release. E.g. "production" or "staging". Omit to skip adding deploy to release.'
8
8
required: false
9
-
inject:
10
-
description: 'Injects Debug IDs into source files and sourcemaps. We strongly recommend enabling this to ensure proper un-minifaction of your stacktraces.'
11
-
required: false
12
9
sourcemaps:
13
-
description: 'Space-separated list of paths to JavaScript sourcemaps. Omit to skip uploading sourcemaps.'
10
+
description: 'Space-separated list of paths to JavaScript source maps. Omit to skip uploading sourcemaps.'
11
+
required: false
12
+
inject:
13
+
description: 'Injects Debug IDs into source files and source maps to ensure proper un-minifcation of your stacktraces. Does nothing if `sourcemaps` was not set.'
14
+
default: true
14
15
required: false
15
16
dist:
16
17
description: 'Unique identifier for the distribution, used to further segment your release. Usually your build number.'
@@ -20,9 +21,11 @@ inputs:
20
21
default: true
21
22
ignore_missing:
22
23
description: 'When the flag is set and the previous release commit was not found in the repository, will create a release with the default commits count instead of failing the command.'
24
+
default: false
23
25
required: false
24
26
ignore_empty:
25
27
description: 'When the flag is set, command will not fail and just exit silently if no new commits for a given release have been found.'
28
+
default: false
26
29
required: false
27
30
started_at:
28
31
description: 'Unix timestamp of the release start date. Omit for current time.'
@@ -44,15 +47,18 @@ inputs:
44
47
required: false
45
48
strip_common_prefix:
46
49
description: 'Will remove a common prefix from uploaded filenames. Useful for removing a path that is build-machine-specific.'
50
+
default: false
47
51
required: false
48
52
working_directory:
49
53
description: 'Directory to collect sentry release information from. Useful when collecting information from a non-standard checkout directory.'
50
54
required: false
51
55
disable_telemetry:
52
56
description: 'The action sends telemetry data and crash reports to Sentry. This helps us improve the action. You can turn this off by setting this flag.'
57
+
default: false
53
58
required: false
54
59
disable_safe_directory:
55
60
description: 'The action needs access to the repo it runs in. For that we need to configure git to mark the repo as a safe directory. You can turn this off by setting this flag.'
0 commit comments