From 0be98bcb8240cad68d8c14efe33b8adaafdabde1 Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Thu, 30 Jul 2020 14:56:35 -0500 Subject: [PATCH 1/6] Create release-notes.yml --- .github/workflows/release-notes.yml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release-notes.yml diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml new file mode 100644 index 000000000..1f685750a --- /dev/null +++ b/.github/workflows/release-notes.yml @@ -0,0 +1,41 @@ +name: .NET Core + +on: + push: + branches: [ master ] + 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 note changes + run: | + git add ${{ github.workspace }}/wiki/* + git commit -m "Update release notes" || echo "No changes to commit" + git push origin master || echo "No changes to commit" From 8c99677b8f93b0ab010d43cb380aaa9a86ddb56d Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Fri, 31 Jul 2020 09:27:31 -0500 Subject: [PATCH 2/6] Update release-notes.yml --- .github/workflows/release-notes.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 1f685750a..ab851781b 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -3,6 +3,8 @@ name: .NET Core on: push: branches: [ master ] + pull_request: + branches: [ master ] workflow_dispatch: jobs: From 3a47cdd430087f2a19e473797e6e5d4b6589c759 Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Fri, 31 Jul 2020 09:37:14 -0500 Subject: [PATCH 3/6] Update release-notes.yml --- .github/workflows/release-notes.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index ab851781b..35804ef0a 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -37,7 +37,8 @@ jobs: --token ${{ github.token }} - name: Commit release note changes + working-directory: ${{ github.workspace }}/wiki run: | - git add ${{ github.workspace }}/wiki/* + git add -A git commit -m "Update release notes" || echo "No changes to commit" git push origin master || echo "No changes to commit" From fb626ff18a88bd5ca73982ffa152d7e51b87c957 Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Fri, 31 Jul 2020 09:43:57 -0500 Subject: [PATCH 4/6] Update release-notes.yml --- .github/workflows/release-notes.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 35804ef0a..1aa203fda 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -39,6 +39,8 @@ jobs: - name: Commit release note changes working-directory: ${{ github.workspace }}/wiki run: | + git config user.email "you@example.com" + 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" From a1e2329ab99a5b2acb2e0488d8617596d45a6a83 Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Fri, 31 Jul 2020 09:47:27 -0500 Subject: [PATCH 5/6] Update release-notes.yml --- .github/workflows/release-notes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 1aa203fda..617c88683 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -36,7 +36,7 @@ jobs: --repository-name Java.Interop --token ${{ github.token }} - - name: Commit release note changes + - name: Commit release notes changes working-directory: ${{ github.workspace }}/wiki run: | git config user.email "you@example.com" From 5cdf52a7da5eafc28059d3cd626e9d02cd96ee81 Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Fri, 31 Jul 2020 09:55:15 -0500 Subject: [PATCH 6/6] Update release-notes.yml --- .github/workflows/release-notes.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 617c88683..6556bb7ac 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -1,10 +1,11 @@ -name: .NET Core +# 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: - push: - branches: [ master ] - pull_request: - branches: [ master ] + schedule: + - cron: 0 6 * * * workflow_dispatch: jobs: