Update CEL version #464
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dispatch UI Tests | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
trigger_dispatch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger repository_dispatch event | |
run: | | |
COMMIT_MSG=$(echo "${{ github.event.head_commit.message }}" | tr '\n' ' ' | base64) | |
PAYLOAD=$(jq -n \ | |
--arg evt "branch-push" \ | |
--arg ref "${{ github.ref }}" \ | |
--arg commit "${{ github.sha }}" \ | |
--arg author "${{ github.event.head_commit.author.name }}" \ | |
--arg msg "$COMMIT_MSG" \ | |
'{event_type: $evt, client_payload: {ref: $ref, commit: $commit, author: $author, message: $msg}}') | |
curl -X POST \ | |
-H "Authorization: token ${{ secrets.UI_TESTS_REPO_ACCESS_TOKEN }}" \ | |
-H "Accept: application/vnd.github.everest-preview+json" \ | |
"https://api.github.com/repos/superwall-me/Superwall-iOS-UI-tests/dispatches" \ | |
-d "$PAYLOAD" |