Skip to content

Commit

Permalink
Update release workflow and release template
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelkanda committed Jul 15, 2021
1 parent ebb01c1 commit 7bef6bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/RELEASE-TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Announcements
* First announcement
# Notes
* First Note

# Changes
# Changes
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python 3.8
- uses: actions/checkout@v2.3.4
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Release Notes
run: git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"
run: |
git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n' --no-merges >> ".github/RELEASE-TEMPLATE.md"
- name: Create Release Draft
uses: softprops/action-gh-release@v1
if: github.repository == 'microsoftgraph/msgraph-sdk-python-core' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
body_path: ".github/RELEASE-TEMPLATE.md"
draft: true
files: |
dist/msgraph_core-${{env.PROJECT_VERSION}}-py3-none-any.whl
dist/msgraph_core-${{env.PROJECT_VERSION}}.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7bef6bd

Please sign in to comment.