From 33aaf3af80f553d7cf11001b2993e462638103b7 Mon Sep 17 00:00:00 2001 From: Yuta Katayama <8683947+yutkat@users.noreply.github.com> Date: Thu, 25 May 2023 07:26:48 +0900 Subject: [PATCH] Add rss --- .github/workflows/trigger_new_rss.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/trigger_new_rss.yml diff --git a/.github/workflows/trigger_new_rss.yml b/.github/workflows/trigger_new_rss.yml new file mode 100644 index 0000000..1ee25c7 --- /dev/null +++ b/.github/workflows/trigger_new_rss.yml @@ -0,0 +1,25 @@ +name: Trigger new rss + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + github: + runs-on: ubuntu-latest + container: ubuntu:latest + steps: + - uses: actions/checkout@v3 + - name: check commit message + id: check_message + run: exit $(test $(git log --no-merges --oneline -1 --pretty=%f) = "Add") + continue-on-error: true + - run: | + curl -X POST -H "Authorization: token $GH_TOKEN" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/yutkat/new-neovim-plugin-with-category-rss/dispatches -d '{"event_type":"trigger-new-repo"}' + env: + GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + if: steps.check_message.outcome == 'success'