Skip to content

Conversation

@anthony-nhs
Copy link
Contributor

Summary

  • Routine Change

Details

  • move create release notes to github actions
  • update github pages with release details

Copy link
Contributor

@bencegadanyi1-nhs bencegadanyi1-nhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need the azure/template files or can we delete them?

Comment on lines -6 to -27
# call create release notes
- bash: |
export NOTIFY_GITHUB_REPOSITORY=$(NOTIFY_GITHUB_REPOSITORY)
export BRANCH_NAME=$(Build.SourceBranchName)
if [ "${BRANCH_NAME}" = "merge" ]; then
export BRANCH_NAME=$(echo "$(System.PullRequest.SourceBranch)" | awk -F/ '{print $NF}')
fi
if [[ -z ${NOTIFY_GITHUB_REPOSITORY} ]]; then
export NOTIFY_GITHUB_REPOSITORY=$(Build.Repository.Name)
fi
cat <<EOF > payload.json
{
"ref": "${BRANCH_NAME}"
}
EOF
echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_int_release_notes.yml/dispatches"
cat payload.json
curl --fail -q -X POST "https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_int_release_notes.yml/dispatches" -d "@./payload.json" --user $(GITHUB_USER):$(GITHUB_ACCESS_TOKEN)
echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_prod_release_notes.yml/dispatches"
curl --fail -q -X POST "https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_prod_release_notes.yml/dispatches" -d "@./payload.json" --user $(GITHUB_USER):$(GITHUB_ACCESS_TOKEN)
displayName: Create release notes post dev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: can we not just delete these azure template files completely at this stage if we are already deleting the functionalities?

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants