diff --git a/.github/RELEASE-TEMPLATE.md b/.github/RELEASE-TEMPLATE.md index 41944140..7d76e2d1 100644 --- a/.github/RELEASE-TEMPLATE.md +++ b/.github/RELEASE-TEMPLATE.md @@ -1,4 +1,4 @@ -# Announcements -* First announcement +# Notes +* First Note -# Changes \ No newline at end of file +# Changes diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afb8648d..79f79e82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}