Skip to content

Instantly share code, notes, and snippets.

View MarcusFelling's full-sized avatar

Marcus Felling MarcusFelling

View GitHub Profile
#!/bin/bash
# Get encrypted password from MySQL Octopus variable set
octopus_pwd=$(get_octopusvariable "octopus_pwd")
# Use the directory where the package was pushed to in the previous deploy step
OctopusDrop=$(get_octopusvariable "Octopus.Action[Push seed script package].Output.Octopus.Action.Package.InstallationDirectoryPath")
echo "Drop: $OctopusDrop"
echo "Updating DataWarehouse DB"
@MarcusFelling
MarcusFelling / VSTS_CreateReleasePullRequest.ps1
Last active September 9, 2021 13:01
Uses the VSTS REST API to create pull request
<#
.SYNOPSIS
Uses the VSTS REST API to create pull request
.DESCRIPTION
This script uses the VSTS REST API to create a Pull Request in the specified
repository, source and target branches. Intended to run via VSTS Build using a build step for each repository.
https://www.visualstudio.com/en-us/docs/integrate/api/git/pull-requests/pull-requests
.NOTES