generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
5 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ To report a code build to Faros specify `CI` in the `event` parameter and includ | |
```yaml | ||
- name: Report code build to Faros | ||
id: send-ci-event | ||
uses: faros-ai/[email protected].9 | ||
uses: faros-ai/[email protected].10 | ||
with: | ||
api-key: ${{ secrets.FAROS_API_KEY }} | ||
event: CI | ||
|
@@ -30,7 +30,7 @@ To report an artifact deployment to Faros specify `CD` in the `event` parameter | |
```yaml | ||
- name: Report deployment to Faros | ||
id: send-cd-event | ||
uses: faros-ai/[email protected].9 | ||
uses: faros-ai/[email protected].10 | ||
with: | ||
api-key: ${{ secrets.FAROS_API_KEY }} | ||
event: CD | ||
|
@@ -44,6 +44,27 @@ To report an artifact deployment to Faros specify `CD` in the `event` parameter | |
run-ended-at: 1594948069000 # millis since epoch, ISO-8601 string or 'Now' | ||
``` | ||
|
||
### Report a code deployment (CD Event) To Faros with commit | ||
|
||
To report the deployment of a commit to Faros specify `CD` in the `event` parameter and include the `CD` required fields. | ||
|
||
```yaml | ||
- name: Report deployment to Faros | ||
id: send-cd-event | ||
uses: faros-ai/[email protected] | ||
with: | ||
api-key: ${{ secrets.FAROS_API_KEY }} | ||
event: CD | ||
commit: GitHub://my-org/my-repo/sha | ||
deploy: CodeDeploy://MyService/<env>/deploymentId # possible env values - Dev, Prod, Staging, QA | ||
deploy-status: Success # possible values - Success, Failed, Canceled | ||
deploy-started-at: 1594938057000 # millis since epoch, ISO-8601 string or 'Now' | ||
deploy-ended-at: 1594938059000 # millis since epoch, ISO-8601 string or 'Now' | ||
run-status: ${{ job.status }} # possible values - Success, Failed, Canceled | ||
run-started-at: 1594938057000 # millis since epoch, ISO-8601 string or 'Now' | ||
run-ended-at: 1594948069000 # millis since epoch, ISO-8601 string or 'Now' | ||
``` | ||
|
||
## Authentication | ||
|
||
Running the action requires a valid [Faros](https://www.faros.ai) account and [API key](https://docs.faros.ai/reference/getting-api-access). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters