Skip to content

Commit

Permalink
fixing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
aasimkhan30 committed Aug 10, 2024
1 parent 02a85bc commit 1e0aadf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
actions: read
checks: write
deployments: write
packages: write

jobs:
build-and-test:
Expand Down Expand Up @@ -69,13 +70,13 @@ jobs:
git add .
git commit -m "Release v${{ env.version }}"
echo "Pushing with message: Release v${{ env.version }}"
git push origin release
- name: Generate release notes
run: |
cd ./release
PREV_TAG=$(git describe --tags --abbrev=0)
echo "${PREV_TAG}"
git log --pretty=format:"%h - %s (%an)" "${PREV_TAG}..HEAD"
GIT_LOG=$(git log --pretty=format:"%h - %s (%an)" "${PREV_TAG}..HEAD")
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
echo "${GIT_LOG}" >> $GITHUB_ENV
Expand All @@ -88,5 +89,18 @@ jobs:
echo v${{ env.version }}
echo ${{ env.exists }}
- name: Create Release
if: env.exists == 'false'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: Release v${{ env.version }}
body: ${{ env.RELEASE_NOTES }}
draft: false
prerelease: false
commitish: release



2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "azdataGraph",
"description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
"version": "0.0.63",
"version": "0.0.62",
"homepage": "https://github.com/microsoft/azdataGraph",
"author": "Microsoft",
"license": "Apache-2.0",
Expand Down

0 comments on commit 1e0aadf

Please sign in to comment.