mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-25 17:48:41 -05:00
29 lines
782 B
YAML
29 lines
782 B
YAML
name: Verify Pre-Deploy Status
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# Checkout repo
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
# Run checks
|
|
- name: Lightstep Pre-Deploy Check
|
|
uses: lightstep/lightstep-action-predeploy@v0.2.6
|
|
id: lightstep-predeploy
|
|
with:
|
|
lightstep_api_key: ${{ secrets.LIGHTSTEP_API_KEY }}
|
|
pagerduty_api_token: ${{ secrets.PAGERDUTY_API_TOKEN }}
|
|
|
|
# Output status as a comment
|
|
- name: Add a Comment
|
|
uses: unsplash/comment-on-pr@master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
msg: ${{ steps.lightstep-predeploy.outputs.lightstep_predeploy_md }}
|
|
check_for_duplicate_msg: true
|