Skip to content

Commit

Permalink
ci: disable e2e trigger (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Naik committed Sep 15, 2023
1 parent 15d5b38 commit f94ee02
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,25 +202,25 @@ jobs:
bodyFile: "release-notes.md"
artifacts: "/tmp/dist/*"

trigger-e2e:
name: Trigger E2E Tests
if: github.event_name != 'pull_request'
needs: publish-images
runs-on: ubuntu-latest

steps:
- name: Set IMAGE_TAG
id: image-tag
run: |
IMAGE_TAG=${GITHUB_SHA}
[[ ${GITHUB_REF_TYPE} == "tag" ]] && IMAGE_TAG=${GITHUB_REF_NAME}
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT
- name: Send dispatch event
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GH_DISPATCH_TOKEN }}" \
https://api.github.com/repos/triggermesh/triggermesh/dispatches \
-d '{"event_type":"e2e-test","client_payload":{"commit_sha":"'${GITHUB_SHA}'", "image_tag":"'${{ steps.image-tag.outputs.IMAGE_TAG }}'"}}'
# trigger-e2e:
# name: Trigger E2E Tests
# if: github.event_name != 'pull_request'
# needs: publish-images
# runs-on: ubuntu-latest

# steps:
# - name: Set IMAGE_TAG
# id: image-tag
# run: |
# IMAGE_TAG=${GITHUB_SHA}
# [[ ${GITHUB_REF_TYPE} == "tag" ]] && IMAGE_TAG=${GITHUB_REF_NAME}
# echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT

# - name: Send dispatch event
# run: |
# curl \
# -X POST \
# -H "Accept: application/vnd.github+json" \
# -H "Authorization: token ${{ secrets.GH_DISPATCH_TOKEN }}" \
# https://api.github.com/repos/triggermesh/triggermesh/dispatches \
# -d '{"event_type":"e2e-test","client_payload":{"commit_sha":"'${GITHUB_SHA}'", "image_tag":"'${{ steps.image-tag.outputs.IMAGE_TAG }}'"}}'

0 comments on commit f94ee02

Please sign in to comment.