-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
23 lines (22 loc) · 862 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import Star from './src/index.js'
import core from '@actions/core'
import github from '@actions/github'
(async function() {
try {
const options = {
repo: github.context.repo.repo,
username: github.context.actor || undefined,
webhook: core.getInput('discord-webhook') || undefined,
filename: core.getInput('template') || undefined,
token: core.getInput('personal-github-token') || undefined,
twitterAppKey: core.getInput('twitter-app-key') || undefined,
twitterAppSecret: core.getInput('twitter-app-secret') || undefined,
twitterOauthToken: core.getInput('twitter-oauth-token') || undefined,
twitterOauthSecret: core.getInput('twitter-oauth-secret') || undefined,
supportMe: core.getInput('support-me')
}
await Star(options)
} catch(error) {
core.setFailed(error.message);
}
})()