Skip to content

Instantly share code, notes, and snippets.

@heymartinadams
Created January 28, 2021 04:21
Show Gist options
  • Save heymartinadams/cd9ee3704118256bdf89a933481efea6 to your computer and use it in GitHub Desktop.
Save heymartinadams/cd9ee3704118256bdf89a933481efea6 to your computer and use it in GitHub Desktop.
# This is a basic workflow to help you get started with Actions
name: Reflect Regression Tests
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# job name
run-staging-tests:
runs-on: ubuntu-latest
steps:
- name: Test name
run:
'curl -X POST -H ''X-Api-Key:<API_KEY>'' -d ''{
"gitHub": { "owner": "<GITHUB_ORG>", "repo": "<GITHUB_REPO>", "sha": "${{
github.event.pull_request.head.sha }}" } }''
https://api.reflect.run/v1/tags/<TAG>/executions'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment