Skip to content

Alert

Alert #773

Workflow file for this run

name: 'Alert'
on:
workflow_dispatch:
repository_dispatch:
types: [raptor_public_update]
# push:
# branches:
# - main
jobs:
alert:
if: ${{ github.repository == 'os-fpga/Raptor' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.sha }}
fetch-depth: '0'
- name: Get Latest Commit ID
run: |
recent_sha=`git log -1 --pretty=format:"%h"`
echo $recent_sha
echo "LATEST_SHA=$recent_sha" >> $GITHUB_ENV
- name: Alert
uses: peter-evans/[email protected]
with:
token: ${{ secrets.NEW_COMMIT_PUSHED }}
repository: ${{ secrets.Alert }}
event-type: raptor_public_update
client-payload: '{"commitSHA": "${{ env.LATEST_SHA }}"}'