https://github.com/themakers/telegram-action
https://github.com/themakers/telegram-action
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/themakers/telegram-action
- Owner: themakers
- License: mit
- Created: 2024-12-25T06:24:28.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-26T07:52:20.000Z (over 1 year ago)
- Last Synced: 2024-12-26T08:17:56.903Z (over 1 year ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telegram-action
* TODO: Optimize using binary release?
* https://full-stack.blend.com/how-we-write-github-actions-in-go.html
* https://api.github.com/repos/themakers/telegram-action/releases/latest
```
name: name
author: author
description: description
runs:
using: node16
main: invoke-binary.js
```
```javascript
function chooseBinary() {
// ...
if (platform === 'linux' && arch === 'x64') {
return `main-linux-amd64-${VERSION}`
}
// ...
}
const binary = chooseBinary()
const mainScript = `${__dirname}/${binary}`
const spawnSyncReturns = childProcess.spawnSync(mainScript, { stdio: 'inherit' })
```
```yaml
---
name: My action
author: My name
description: My description
runs:
using: docker
image: Dockerfile
---
steps:
- name: My action
uses: docker://themakers/telegram-action:latest
```