Sha256: 7d5dd0d6ca174bcf2d8eb997c3b28d64276e12184119e80a456df5be82c60a1c

Contents?: true

Size: 561 Bytes

Versions: 2

Compression:

Stored size: 561 Bytes

Contents

#!/bin/bash

output=$(curl -v -X POST https://api.github.com/repos/pact-foundation/pact_broker-client/dispatches \
      -H 'Accept: application/vnd.github.everest-preview+json' \
      -H "Authorization: Bearer $GITHUB_ACCESS_TOKEN" \
      -d '{"event_type": "release-patch"}' 2>&1)

if  ! echo "${output}" | grep "HTTP\/1.1 204" > /dev/null; then
  echo "$output" | sed  "s/${GITHUB_ACCESS_TOKEN}/****/g"
  echo "Failed to do the thing"
  exit 1
fi

echo "See https://github.com/pact-foundation/pact_broker-client/actions?query=workflow%3A%22Release+gem%22"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pact_broker-client-1.28.1 script/trigger-release.sh
pact_broker-client-1.28.0 script/trigger-release.sh