Adding fatal error log in monitor Handler for unhandled errors #2
Workflow file for this run
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
name: Deploy | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '[0-9]+.[0-9a-z]+.[0-9a-z]+' | |
jobs: | |
monitor: | |
name: Build Monitor Lambda Zip | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
env: | |
GH_TOKEN: ${{ github.token }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Build monitor | |
run: | | |
cd tools/autograph-monitor | |
make build | |
- name: Create release draft if a release doesn't exist yet | |
run: | | |
EXISTING_RELEASE=$(gh release view $GITHUB_REF_NAME --json="id" || echo '') | |
if [[ -z $EXISTING_RELEASE ]]; then | |
gh release create $GITHUB_REF_NAME --generate-notes --latest | |
fi | |
- name: Upload zip package to release | |
run: | | |
gh release upload $GITHUB_REF_NAME "tools/autograph-monitor/autograph-monitor.zip" --clobber |