Skip to content

Commit

Permalink
Merge pull request #37 from triggermesh/task/disable-e2e
Browse files Browse the repository at this point in the history
Follow tm to disable e2e
  • Loading branch information
Pablo Mercado authored Sep 15, 2023
2 parents 9546262 + 6a0961b commit 97d29b5
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 @@ -126,25 +126,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=sha-${GITHUB_SHA:0:7}
[[ ${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-event-sources-bundle/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=sha-${GITHUB_SHA:0:7}
# [[ ${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-event-sources-bundle/dispatches \
# -d '{"event_type":"e2e-test","client_payload":{"commit_sha":"'${GITHUB_SHA}'", "image_tag":"'${{ steps.image-tag.outputs.IMAGE_TAG }}'"}}'

0 comments on commit 97d29b5

Please sign in to comment.