Skip to content

Discord-Sync

Discord-Sync #352

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name:
Discord-Sync
# Controls when the workflow will run
on:
# Triggers the workflow every time-interval
schedule:
# Run every day at 12:00am (UTC)
# - cron: "0 * * * *"
# Run every day
- cron: "0 0 * * *"
# Run every hour
# - cron: "0 * * * *"
# Run Every 5 min
# - cron: "*/5 * * * *"
push:
branches: [main]
env:
API_KEY: ${{ secrets.API_KEY }}
API_USERNAME: ${{ secrets.API_USERNAME }}
TOKEN: ${{ secrets.TOKEN }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "cron"
cron:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
# Runs the installations script
- name: Install dependencies
run: npm install
# Runs a single command using the runners shell
- name: Run discord/Discourse Role sync
run: npm run sync