diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml new file mode 100644 index 000000000..6556bb7ac --- /dev/null +++ b/.github/workflows/release-notes.yml @@ -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 "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"