Skip to content

webhook

webhook #332

Workflow file for this run

name: Webhook
on:
repository_dispatch:
types: [webhook]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
- name: Add page
run: ./scripts/new-page.sh --title "${{ github.event.client_payload.title }}" --url "${{ github.event.client_payload.url }}" --tags "${{ github.event.client_payload.tags }}"
- name: Add & Commit
uses: EndBug/add-and-commit@v7.3.0
with:
add: 'content/items'
author_name: iamthen0ise
author_email: thefiltdj@gmail.com
committer_name: iamthen0ise
commiter_email: thefiltdj@gmail.com
message: 'Add ${{ github.event.client_payload.title }}'