Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snow-actions/nostr
Send EVENT to Nostr
https://github.com/snow-actions/nostr
nostr
Last synced: 19 days ago
JSON representation
Send EVENT to Nostr
- Host: GitHub
- URL: https://github.com/snow-actions/nostr
- Owner: snow-actions
- License: mit
- Created: 2023-02-17T17:35:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-15T09:05:09.000Z (29 days ago)
- Last Synced: 2024-11-16T22:33:05.926Z (27 days ago)
- Topics: nostr
- Language: JavaScript
- Homepage:
- Size: 1.68 MB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- awesome-nostr-japan - snow-actions/nostr - EVENT を送信する GitHub Actions by [SnowCait](https://github.com/SnowCait) (Libraries)
- awesome-nostr - Nostr action - actions/nostr.svg?style=social) - Send events from GitHub Actions (Tools / Client reviews and/or comparisons)
README
# snow-actions/nostr
Send EVENT to Nostr.
## Usage
```yml
steps:
- uses: snow-actions/[email protected]
with:
relays: ${{ vars.NOSTR_RELAYS }}
private-key: ${{ secrets.NOSTR_PRIVATE_KEY }}
content: |
Text message
id: publish
- run: echo "${event}"
env:
event: ${{ steps.publish.outputs.event }}
```Other examples are [`test.yml`](.github/workflows/test.yml).
## Inputs
See [action.yml](action.yml)
| Name | Description | Default | Required |
| - | - | - | - |
| `relays` | Relay URLs `wss://...` (separated by `\n`) | - | yes |
| `private-key` | Private key (nsec or hex) | - | yes |
| `content` | Content | `''` | no |
| `kind` | Kind | `1` | no |
| `tags` | Tags (YAML or JSON) | `[]` | no |## Outputs
See [action.yml](action.yml)
| Name | Description |
| - | - |
| `event` | Published event |## Supported
### Runners
- `ubuntu-*`
- `windows-*`
- `macos-*`
- `self-hosted`### Events
- Any
## Dependencies
- Node.js 16
- See [package.json](package.json)## Contributing
Welcome.