Skip to content

Commit

Permalink
Add integration action
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Terrasa <[email protected]>
  • Loading branch information
Morriar committed Mar 28, 2024
1 parent 265bea2 commit 05ef19b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Integration

on:
pull_request_target:
types: [opened, reopened, synchronize]

jobs:
ping:
runs-on: ubuntu-latest
name: Trigger slack webhook

steps:
- name: Trigger slack webhook
run: |
curl -X POST -H 'Content-type: application/json' --fail ${{ secrets.SLACK_WEBHOOK_URL }} --data \
'
{
"pull_request_url": "${{ github.event.repository.html_url }}/pull/${{ github.event.pull_request.number }}",
"pull_request_number": "${{ github.event.pull_request.number }}",
"pull_request_title": "${{ github.event.pull_request.title }}",
"pull_request_user": "${{ github.event.pull_request.user.login }}",
"buildkite_url": "${{ secrets.BUILDKITE_TRIGGER_URL }}?message=shopify/tapioca/${{ github.event.pull_request.number }}&branch=at-fix-tapioca-pipeline&env=TAPIOCA_REPO=${{ github.event.pull_request.head.repo.full_name }}%0ATAPIOCA_BRANCH=${{ github.event.pull_request.head.ref }}%0ATAPIOCA_PR=${{ github.event.pull_request.number }}#new",
}'

0 comments on commit 05ef19b

Please sign in to comment.