Skip to content

Allow sending details for run status, deploy status and env (#177) #459

Allow sending details for run status, deploy status and env (#177)

Allow sending details for run status, deploy status and env (#177) #459

Workflow file for this run

name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
npm install
- run: |
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
env:
FAROS_API_URL: https://dev.api.faros.ai
FAROS_DRY_RUN: 1
steps:
- uses: actions/checkout@v4
- uses: ./
name: Send CI event to Faros using commit
id: send-ci-event-commit
with:
api-key: fake_key
event: CI
run-status: ${{ job.status }}
run-started-at: Now
run-ended-at: Now
- uses: ./
name: Send CI event to Faros using artifact
id: send-ci-event-artifact
with:
api-key: fake_key
event: CI
artifact: ${{ format('Docker://farosai/emitter/{0}', github.sha) }}
run-status: ${{ job.status }}
run-started-at: Now
run-ended-at: Now
- uses: ./
name: Send CD event to Faros using commit
id: send-cd-event-commit
with:
api-key: fake_key
event: CD
deploy: ${{ format('CodeDeploy://Emitter/Prod/{0}', github.run_id) }}
deploy-status: Success
deploy-started-at: Now
deploy-ended-at: Now
run-status: ${{ job.status }}
- uses: ./
name: Send CD event to Faros using artifact
id: send-cd-event-artifact
with:
api-key: fake_key
event: CD
deploy: ${{ format('CodeDeploy://Emitter/Prod/{0}', github.run_id) }}
deploy-status: Success
deploy-started-at: Now
deploy-ended-at: Now
artifact: ${{ format('Docker://farosai/emitter/{0}', github.sha) }}
run-status: ${{ job.status }}