Skip to content

Commit 7bef6bd

Browse files
committed
Update release workflow and release template
1 parent ebb01c1 commit 7bef6bd

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/RELEASE-TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Announcements
2-
* First announcement
1+
# Notes
2+
* First Note
33

4-
# Changes
4+
# Changes

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,17 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717
- name: Set up Python 3.8
18-
- uses: actions/[email protected]
18+
uses: actions/setup-python@v1
1919
with:
2020
python-version: 3.8
2121
- name: Release Notes
22-
run: git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"
22+
run: |
23+
git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n' --no-merges >> ".github/RELEASE-TEMPLATE.md"
2324
- name: Create Release Draft
2425
uses: softprops/action-gh-release@v1
26+
if: github.repository == 'microsoftgraph/msgraph-sdk-python-core' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
2527
with:
2628
body_path: ".github/RELEASE-TEMPLATE.md"
2729
draft: true
28-
files: |
29-
dist/msgraph_core-${{env.PROJECT_VERSION}}-py3-none-any.whl
30-
dist/msgraph_core-${{env.PROJECT_VERSION}}.tar.gz
3130
env:
3231
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)