my-neovim-pluginlist/.github/workflows/trigger_new_rss.yml
2023-05-25 09:11:59 +09:00

28 lines
925 B
YAML

name: Trigger new rss
on:
push:
branches:
- main
jobs:
github:
runs-on: ubuntu-latest
container: ubuntu:latest
steps:
- run: |
apt update
apt-get install -y git curl
- run: git config --global --add safe.directory $(realpath .)
- uses: actions/checkout@v3
- name: latest commit message
run: |
echo LATEST_MESSAGE=$(git log --no-merges --oneline -1 --pretty=%f) >> $GITHUB_ENV
- name: check commit message
run: echo RESULT=$(test "$LATEST_MESSAGE" = "Add") >> $GITHUB_ENV
- 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: env.LATEST_MESSAGE == 'Add'