github.com/arunkumar7540/cli@v6.45.0+incompatible/ci/cli-v7/tasks/create-release-marker.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -euo pipefail
     4  
     5  next_monday=$(date -d next-monday +%Y-%m-%dT17:00:00Z)
     6  echo $next_monday
     7  curl -X POST \
     8      -H "X-TrackerToken: ${TRACKER_API_KEY}" \
     9      -H "Content-Type: application/json" \
    10      -d "{ \
    11      \"name\": \"$(<bump-v7-version/version)\", \
    12      \"story_type\": \"release\", \
    13      \"deadline\": \"${next_monday}\" \
    14  }" \
    15  "https://www.pivotaltracker.com/services/v5/projects/$TRACKER_PROJECT_ID/stories"
    16  
    17  exit 0