Skip to content

[Actions] Use GitHub actions to automatically generate release notes #683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This action runs every day and updates the draft release notes on the wiki
# from comments put on PR's tagged with the `release-notes` label.
name: Update Release Notes

# Runs every day at 06:00 UTC
on:
schedule:
- cron: 0 6 * * *
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Check out wiki repo
uses: actions/checkout@v2
with:
repository: xamarin/java.interop.wiki
path: wiki

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x

- name: Install Noted
run: dotnet tool install -g noted

- name: Run Noted
run: >
noted
--repository-owner xamarin
--repository java.interop
--output-directory ${{ github.workspace }}/wiki
--repository-name Java.Interop
--token ${{ github.token }}

- name: Commit release notes changes
working-directory: ${{ github.workspace }}/wiki
run: |
git config user.email "[email protected]"
git config user.name "Release Notes Bot"
git add -A
git commit -m "Update release notes" || echo "No changes to commit"
git push origin master || echo "No changes to commit"