Skip to content

About

This is GitHub Actions for sending webhook to VirtualSpace

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Vspace Webhook

A GitHub Action that sends a message to VSpace through its webhook, so you can get notified from your workflows.

Inputs

Name Required Description
webhook-url yes The Update URL you got from VSpace
secret-key yes The Secret Key you got from VSpace
messages yes The message you want to send from the action

The action sends a POST request to webhook-url with the secret-key header and a JSON body of {"text": "<messages>"}. It fails the step if the request fails.

Usage

Store the URL and key as repository secrets, then add a step to your workflow:

name: Notify VSpace

on:
  push:
    branches: [main]

jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
      - uses: virtualspirit/vspace-webhook@main
        with:
          webhook-url: ${{ secrets.VSPACE_WEBHOOK_URL }}
          secret-key: ${{ secrets.VSPACE_SECRET_KEY }}
          messages: "Deployed ${{ github.repository }} @ ${{ github.sha }}"

Development

The action runs on Node 24 and node_modules is committed, because GitHub runs index.js directly. After changing dependencies, commit the updated node_modules too.

npm install

License

ISC

About

This is GitHub Actions for sending webhook to VirtualSpace

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages