From fe3f1c743c6fd5ff9a5a3c4f99ed2a5d4e76aa4e Mon Sep 17 00:00:00 2001 From: sideshowbarker Date: Fri, 19 Jul 2024 14:56:35 +0900 Subject: [PATCH] CI: Add notes-push.yml, for updating commit Notes on push to master This change, for each commit pushed/merged to master: - causes new git Notes with GitHub PR/issue/reviewer/author links to be auto-generated for that commit - pushes the updated refs/notes/commits tree+references back to the repo --- .github/workflows/notes-push.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/notes-push.yml diff --git a/.github/workflows/notes-push.yml b/.github/workflows/notes-push.yml new file mode 100644 index 00000000000..ffde951b930 --- /dev/null +++ b/.github/workflows/notes-push.yml @@ -0,0 +1,17 @@ +name: Push notes +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: fregante/setup-git-user@v2 + - run: | + git fetch origin "refs/notes/*:refs/notes/*" + curl -fsSLO https://sideshowbarker.github.io/git-gloss/git-gloss && bash ./git-gloss + git push origin "refs/notes/*" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}