This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
GitHub Actions workflow with "deployment_status" trigger does not run #428
Locked
mikenikles
started this conversation in
Show & Tell
Replies: 1 comment 2 replies
-
I am struggling with the same issue, name: ci
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
on: [deployment_status]
jobs:
e2e:
# only runs this job on successful deploy
if: github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@v1
- name: Run Cypress 🌲
uses: cypress-io/github-action@v2
env:
CYPRESS_BASE_URL: ${{ github.event.deployment_status.target_url }} Preview deploy which succeeds does not trigger this workflow. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have the following GitHub Actions workflow:
I can see the
target_url
when I usecurl
to fetch from the API directly, but for some reason the workflow does not get triggered after Vercel completes the preview deployment.I'm experimenting with it in mootoday/www-mootoday-com#161. Does anyone see what I'm missing?
Thanks,
Mike
Beta Was this translation helpful? Give feedback.
All reactions