This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59c556e
commit c872281
Showing
5 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,10 +211,8 @@ jobs: | |
|
||
- name: Create Release -- Generate Changelog | ||
if: contains(github.ref, '/tags/v') | ||
uses: scottbrenner/[email protected] | ||
id: Changelog | ||
env: | ||
REPO: ${{ github.repository }} | ||
run: | ||
source ./{{cookiecutter.project_slug}}/.github/scripts/changelog.sh | ||
|
||
- name: Create Release -- Create Github Release | ||
if: contains(github.ref, '/tags/v') | ||
|
@@ -225,9 +223,8 @@ jobs: | |
tag_name: ${{ env.BRANCH_OR_TAG }} | ||
release_name: Release ${{ env.BRANCH_OR_TAG }} | ||
body: | | ||
${{ steps.Changelog.outputs.changelog }} | ||
${{ env.CHANGE_LOG_CONTENT }} | ||
## Deployment Checklist | ||
- [ ] Ensure correct version is notated | ||
- [ ] Ensure documentation is accurate | ||
- [ ] Ensure git commits are properly formatted | ||
draft: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
"company": "Shared Vision Solutions", | ||
"email": "[email protected]", | ||
"_GITHUB_ACTION_MARKDOWN_LINK_CHECK": "gaurav-nelson/[email protected]", | ||
"_GITHUB_GENERATE_CHANGELOG_ACTION": "scottbrenner/[email protected]", | ||
"_GITHUB_GITLEAKS_ACTION": "zricethezav/[email protected]", | ||
"_GITHUB_PUSH_ACTION": "ad-m/[email protected]" | ||
} |
21 changes: 21 additions & 0 deletions
21
{{cookiecutter.project_slug}}/.github/scripts/changelog.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
main() { | ||
|
||
echo "{}" > package.json | ||
TAG="$(git tag | sort --version-sort | tail -n 2 | head -n 1)" | ||
CHANGE_LOG_CONTENT="$(npx -q generate-changelog -f - -t "${TAG}")" | ||
|
||
{ | ||
echo "CHANGE_LOG_CONTENT<<EOF" | ||
echo "${CHANGE_LOG_CONTENT}" | ||
echo "EOF" | ||
} >> "$GITHUB_ENV" | ||
|
||
rm package.json | ||
|
||
} | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck disable=SC2129 | ||
|
||
set -eo pipefail | ||
|
||
main() { | ||
BRANCH_OR_TAG="$(echo "${GITHUB_REF}" | sed 's/refs\/heads\///g' | sed 's/refs\/tags\///g')" | ||
WORKFLOW_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" | ||
echo "BRANCH_OR_TAG=${BRANCH_OR_TAG}" >> "$GITHUB_ENV" | ||
echo "WEBHOOK_URL=${WEBHOOK_URL}" >> "$GITHUB_ENV" | ||
echo "NOTIFICATION=${PROJECT_NAME} [<${WORKFLOW_URL}|${BRANCH_OR_TAG}>]" >> "$GITHUB_ENV" | ||
|
||
{ | ||
echo "BRANCH_OR_TAG=${BRANCH_OR_TAG}" | ||
echo "WEBHOOK_URL=${WEBHOOK_URL}" | ||
echo "NOTIFICATION=${PROJECT_NAME} [<${WORKFLOW_URL}|${BRANCH_OR_TAG}>]" | ||
} >> "$GITHUB_ENV" | ||
|
||
} | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters