-
Notifications
You must be signed in to change notification settings - Fork 6
/
action.yml
35 lines (34 loc) · 1.29 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "calsync"
inputs:
discord-guild-id:
required: true
discord-bot-token:
required: true
discord-application-id:
required: true
google-calendar-id:
required: true
google-service-account-key-json:
description: "Either google-api-key or google-service-account-key-json needs to be specified"
required: false
google-api-key:
description: "Either google-api-key or google-service-account-key-json needs to be specified"
required: false
runs:
using: "composite"
steps:
- name: Setup Deno 🔧
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
- name: Run sync 🔁
shell: bash
working-directory: ${{ github.action_path }}
run: deno run --allow-net --allow-env --allow-read ./mod.ts
env:
DISCORD_EVENTS_SYNC_DISCORD_GUILD_ID: ${{ inputs.discord-guild-id }}
DISCORD_EVENTS_SYNC_DISCORD_BOT_TOKEN: ${{ inputs.discord-bot-token }}
DISCORD_EVENTS_SYNC_DISCORD_APPLICATION_ID: ${{ inputs.discord-application-id }}
DISCORD_EVENTS_SYNC_GOOGLE_CALENDAR_CALENDAR_ID: ${{ inputs.google-calendar-id }}
DISCORD_EVENTS_SYNC_GOOGLE_CALENDAR_API_KEY: ${{ inputs.google-api-key }}
DISCORD_EVENTS_SYNC_GOOGLE_CALENDAR_SERVICE_ACCOUNT_KEY_JSON: ${{ inputs.google-service-account-key-json }}